1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-29 15:36:32 -05:00

Common: Polish Fiber class, add comments, asserts and more tests.

This commit is contained in:
Fernando Sahmkow
2020-02-05 15:48:20 -04:00
parent 8d0e3c5422
commit be320a9e10
5 changed files with 147 additions and 25 deletions

View File

@@ -12,6 +12,7 @@ class SpinLock {
public:
void lock();
void unlock();
bool try_lock();
private:
std::atomic_flag lck = ATOMIC_FLAG_INIT;