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