 |
Newton Dynamics
4.00
|
|
22 #ifndef _D_SYNC_MUTEX_H_
23 #define _D_SYNC_MUTEX_H_
25 #include "dCoreStdafx.h"
41 D_CORE_API
void Sync();
44 D_CORE_API
void Tick();
49 #ifndef D_USE_THREAD_EMULATION
52 std::condition_variable m_condition;
D_CORE_API void Sync()
Synchronize with another worker threads.
Definition: dSyncMutex.cpp:38
D_CORE_API dSyncMutex()
Create and initialize counter to zero.
Definition: dSyncMutex.cpp:25
D_CORE_API void Release()
Decrement internal variable m_count by one and signal the thread to wakeup.
Definition: dSyncMutex.cpp:49
Generic counting mutex for synchronization of thread jobs.
Definition: dSyncMutex.h:29
D_CORE_API void Tick()
Increment internal variable m_count by one.
Definition: dSyncMutex.cpp:58
D_CORE_API ~dSyncMutex()
Destroy mutex.
Definition: dSyncMutex.cpp:34