11 #ifndef __PRM_LOCK_H_INCLUDED__
12 #define __PRM_LOCK_H_INCLUDED__
16 #include <tbb/spin_rw_mutex.h>
41 PRM_SpinLockScope::acquire(lock,
false);
49 return PRM_SpinLockScope::upgrade_to_writer();
68 PRM_SpinLockScope::acquire(lock,
true);
77 #endif // __PRM_LOCK_H_INCLUDED__
void acquire(PRM_SpinLock &lock)
tbb::spin_rw_mutex PRM_SpinLock
tbb::spin_rw_mutex::scoped_lock PRM_SpinLockScope
PRM_SpinLockWriteScope(PRM_SpinLock &lock)
void acquire(PRM_SpinLock &lock)
PRM_SpinLockReadScope(PRM_SpinLock &lock)