IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
IPSDK_Nightly
include
public
IPSDKUtil
Tools
MutexMacros.h
Go to the documentation of this file.
1
// MutexMacros.h:
3
// --------------
4
//
14
15
#ifndef __IPSDKUTIL_MUTEXMACROS_H__
16
#define __IPSDKUTIL_MUTEXMACROS_H__
17
18
#include <boost/thread/mutex.hpp>
19
22
27
#define IPSDK_STATIC_MUTEX(MutexName) \
28
namespace MutexName { \
29
static boost::mutex& \
30
get() { \
31
static boost::mutex g_mutex; \
32
return g_mutex; \
33
} \
34
static boost::mutex& g_mutex = get(); \
35
}
36
39
40
#endif // __IPSDKUTIL_MUTEXMACROS_H__
Generated on Tue Apr 15 2025 16:20:49 for IPSDK by
1.8.14