Commit ce615def authored by Berenger Bramas's avatar Berenger Bramas
Browse files

Again v5 try to make the intel compiler happy

parent d89ab98c
Pipeline #101853 failed with stages
in 12 minutes and 12 seconds
......@@ -69,7 +69,7 @@ public:
int localBusy = Busy;// Intel complains if we pass a const as last param
int expected = Available;
while(!__sync_val_compare_and_swap((int*)&k->lock, (unsigned int*)&expected, localBusy)){
while(!__sync_val_compare_and_swap((int*)&k->lock, expected, localBusy)){
while(!std::atomic_compare_exchange_strong(&k->lock, &expected, localBusy)){
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment