This commit is contained in:
Baptiste Wicht 2016-06-30 21:01:32 +02:00
parent 03c060af34
commit 60a721a05b

View File

@ -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(){