19 #include <tbb/mutex.h>
43 tbb::mutex::scoped_lock m_Lock;
55 std::cout <<
"Warning 'NULL Mutex' is used, so no thread safety! Compile with TBB and define USE_TBB to enable TBB mutex." << std::endl;
83 delete m_pScopedLockPrivate;
96 return m_pScopedLockPrivate->m_Lock.try_acquire(rMutex.
m_pMutexPrivate->m_Mutex);
105 m_pScopedLockPrivate->m_Lock.release();