![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Non-recursive spin lock backed by an atomic flag. More...
#include <spinlock.h>
Public Member Functions | |
| SpinLock (const SpinLock &)=delete | |
| SpinLock & | operator= (const SpinLock &)=delete |
| bool | try_lock () |
| Attempts to acquire the lock without waiting. | |
| void | lock () |
| Spins until the lock is acquired. | |
| void | unlock () |
| Releases the lock. | |
Non-recursive spin lock backed by an atomic flag.
|
inline |
Attempts to acquire the lock without waiting.