#include <spin_mutex.h>
Public Member Functions | |
spin_mutex (bool isLocked=false) | |
void | lock () |
bool | try_lock () |
void | unlock () |
A simple mutex implemented with a spin lock, please don't use this instead of a regular mutex with the assumption it will be faster. Spin locks can introduce a whole new set of performance issues, this is provided only for use in special cases.