// -*- c++ -*-

/*
 * Jakelib2 - General purpose C++ library
 * Copyright (C) 2001 Florian Wolff  (florian@donuz.de)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * $Id: Synchronizer.h,v 1.14 2003/08/29 11:58:55 florian Exp $
 */

#ifdef JAKELIB_THREADS
# ifndef INCLUDE_JAKELIB2_LANG_SYNCHRONIZER_H
#   define INCLUDE_JAKELIB2_LANG_SYNCHRONIZER_H
#   include "Synchronizeable.h"

namespace jakelib {
  namespace lang {

    /**
     * \c Synchronizer is a synchronizeable \c Object. Use this where you
     * would use an extra Object in Java to synchronize on.
     *
     * \code
     * Synchronizer* obj = new Synchronizer();
     *
     * {
     *   JAKELIB_SYNCHRONIZED(obj);
     *   ...
     * }
     * \endcode
     *
     * @class Synchronizer
     * @version $Id: Synchronizer.h,v 1.14 2003/08/29 11:58:55 florian Exp $
     * @author Florian 'Overflo' Wolff (florian@donuz.de)
     */
    class Synchronizer : public jakelib::lang::Object,
			 public jakelib::lang::Synchronizeable
      {
      public:
	Synchronizer();

	JAKELIB_DECLARE_CLASS(Synchronizer);
      };
  }
}

# endif
#endif

