Fawkes API  Fawkes Development Version
recursive_mutex.cpp
00001 
00002 /***************************************************************************
00003  *  mutex.cpp - implementation of mutex, based on pthreads
00004  *
00005  *  Generated: Thu Sep 14 17:03:57 2006
00006  *  Copyright  2006  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version. A runtime exception applies to
00014  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU Library General Public License for more details.
00020  *
00021  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00022  */
00023 
00024 #include <core/threading/recursive_mutex.h>
00025 
00026 namespace fawkes {
00027 
00028 /** @class RecursiveMutex <core/threading/recursive_mutex.h>
00029  * Recursive mutex.
00030  * This is a mutex which can be locked multiple times by the same thread.
00031  * Other threads attempting to lock the mutex will block as if this were a
00032  * regular mutex.
00033  * This class is just a convenience sub-class of Mutex with its type set
00034  * to Mutex::RECURSIVE. It is meant to be used to make the actual behavior
00035  * more obvious.
00036  *
00037  * @ingroup Threading
00038  * @ingroup FCL
00039  *
00040  * @author Tim Niemueller
00041  */
00042 
00043 /** Constructor. */
00044 RecursiveMutex::RecursiveMutex()
00045   : Mutex(Mutex::RECURSIVE)
00046 {
00047 }
00048 
00049 } // end namespace fawkes