MeVisLab Toolbox Reference
mlMutex.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef ML_MUTEX_H
14 #define ML_MUTEX_H
15 
18 
19 #include "mlUtilsSystem.h"
20 
21 #include <ThirdPartyWarningsDisable.h>
22 #include <boost/thread/recursive_mutex.hpp>
23 #include <boost/thread/mutex.hpp>
24 #include <boost/thread/condition.hpp>
25 #include <ThirdPartyWarningsRestore.h>
26 
27 ML_UTILS_START_NAMESPACE
28 
32 typedef boost::recursive_mutex RecursiveMutex;
34 typedef boost::recursive_mutex::scoped_lock RecursiveLock;
35 
39 typedef boost::mutex Mutex;
41 typedef boost::mutex::scoped_lock Lock;
42 
43 ML_UTILS_END_NAMESPACE
44 
45 #endif // __mlMutex_H
46 
47 
boost::recursive_mutex RecursiveMutex
Defines a recursive mutex.
Definition: mlMutex.h:32
boost::mutex Mutex
Defines a non-recursive mutex.
Definition: mlMutex.h:39
boost::mutex::scoped_lock Lock
Defines a lock for locking a non-recursive mutex.
Definition: mlMutex.h:41
boost::recursive_mutex::scoped_lock RecursiveLock
Defines a lock for locking a recursive mutex.
Definition: mlMutex.h:34