Skip to content
Snippets Groups Projects
Commit 63b9d736 authored by Berenger Bramas's avatar Berenger Bramas
Browse files

Again v3 try to make the intel compiler happy

parent 2c1d2d22
No related branches found
No related tags found
No related merge requests found
Pipeline #101851 failed
......@@ -69,7 +69,7 @@ public:
int localBusy = Busy;// Intel complains if we pass a const as last param
int expected = Available;
#ifdef __INTEL_COMPILER
while(!__sync_val_compare_and_swap(&k->lock, &expected, localBusy)){
while(!__sync_val_compare_and_swap((int*)&k->lock, &expected, localBusy)){
#else
while(!std::atomic_compare_exchange_strong(&k->lock, &expected, localBusy)){
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment