mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-09 12:31:06 -04:00
Add note
This commit is contained in:
parent
03c060af34
commit
60a721a05b
@ -16,6 +16,7 @@ public:
|
||||
void acquire(){
|
||||
while(!__sync_bool_compare_and_swap(&lock, 0, 1));
|
||||
__sync_synchronize();
|
||||
//TODO The last synchronize is probably not necessary
|
||||
}
|
||||
|
||||
void release(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user