IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Macros
MutexMacros.h File Reference

Macros allowing to define a getter to a static mutex. More...

#include <boost/thread/mutex.hpp>

Go to the source code of this file.

Macros

#define IPSDK_STATIC_MUTEX(MutexName)
 macro allowing to create a static mutex More...
 

Detailed Description

Macros allowing to define a getter to a static mutex.

Author
E. Noirfalise
Date
2014/03/20

Creation of mutex is safe against library static initializers creation

Macro Definition Documentation

◆ IPSDK_STATIC_MUTEX

#define IPSDK_STATIC_MUTEX (   MutexName)
Value:
namespace MutexName { \
static boost::mutex& \
get() { \
static boost::mutex g_mutex; \
return g_mutex; \
} \
static boost::mutex& g_mutex = get(); \
}

macro allowing to create a static mutex

Creation of mutex is safe against library static initializers creation