29 #ifndef ICL_CORE_THREAD_SINGLETON_THREADING_MODELS_H_INCLUDED 30 #define ICL_CORE_THREAD_SINGLETON_THREADING_MODELS_H_INCLUDED 47 #if defined(_SYSTEM_WIN32_) 49 #elif defined(__GNUC__) 50 __asm__ __volatile__ (
"" :::
"memory");
52 # error "No memory barrier implementation is available for your system." 57 typedef ::icl_core::thread::ScopedMutexLock
Guard;
60 typedef ::icl_core::thread::Mutex
Lock;
::icl_core::thread::ScopedMutexLock Guard
Use ScopedMutexLock as the lock guard.
Mutex-based thread-safe singleton threading model.
::icl_core::thread::Mutex Lock
Use Mutex as the actual lock.
static void memoryBarrier()
Memory barrier for synchronization.