Arachne
0.1
|
#include <Arachne.h>
Public Member Functions | |
SpinLock (std::string name) | |
void | lock () |
bool | try_lock () |
void | unlock () |
void | setName (std::string name) |
A resource that can be acquired by only one thread at a time.
|
inlineexplicit |
Constructor and destructor for spinlock.
|
inline |
Repeatedly try to acquire this resource until success.
|
inline |
Set the label used for deadlock warning.
|
inline |
Attempt to acquire this resource once.
|
inline |
Release resource.