Bullet Collision Detection & Physics Library
|
btSpinMutex – lightweight spin-mutex implemented with atomic ops, never puts a thread to sleep because it is designed to be used with a task scheduler which has one thread per core and the threads don't sleep until they run out of tasks. More...
#include <btThreads.h>
Public Member Functions | |
btSpinMutex () | |
void | lock () |
void | unlock () |
bool | tryLock () |
Private Attributes | |
int | mLock |
btSpinMutex – lightweight spin-mutex implemented with atomic ops, never puts a thread to sleep because it is designed to be used with a task scheduler which has one thread per core and the threads don't sleep until they run out of tasks.
Not good for general purpose use.
Definition at line 28 of file btThreads.h.
|
inline |
Definition at line 33 of file btThreads.h.
void btSpinMutex::lock | ( | ) |
Definition at line 213 of file btThreads.cpp.
bool btSpinMutex::tryLock | ( | ) |
Definition at line 223 of file btThreads.cpp.
void btSpinMutex::unlock | ( | ) |
Definition at line 218 of file btThreads.cpp.
|
private |
Definition at line 30 of file btThreads.h.