Common: Polish Fiber class, add comments, asserts and more tests.
This commit is contained in:
parent
8d0e3c5422
commit
be320a9e10
5 changed files with 147 additions and 25 deletions
|
@ -12,6 +12,7 @@ class SpinLock {
|
|||
public:
|
||||
void lock();
|
||||
void unlock();
|
||||
bool try_lock();
|
||||
|
||||
private:
|
||||
std::atomic_flag lck = ATOMIC_FLAG_INIT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue