17 #if !defined(OPENNURBS_LOCK_INC_) 18 #define OPENNURBS_LOCK_INC_ 28 #if defined(ON_COMPILER_CLANG) 41 DefaultLockedValue = 1,
60 bool GetDefaultLock();
70 bool ReturnDefaultLock();
82 bool GetLock(
int lock_value);
94 bool ReturnLock(
int lock_value);
109 #pragma ON_PRAGMA_WARNING_PUSH 110 #pragma ON_PRAGMA_WARNING_DISABLE_MSC( 4251 ) 115 #if defined(ON_COMPILER_CLANG) 116 std::atomic<int> m_lock_value;
120 #pragma ON_PRAGMA_WARNING_POP Definition: opennurbs_lock.h:39
ON_Lock is a thread safe lock semephore. It is implemented using platform specfic compare and set fun...
Definition: opennurbs_lock.h:24