Skip to content
Snippets Groups Projects

adding collision test to the pipeline

Merged Tobias Baetge requested to merge feature/test_collisions into develop
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -96,7 +96,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((int*)&k->lock, &expected, localBusy)){
while(!__sync_val_compare_and_swap((int*)&k->lock, (unsigned int*)&expected, localBusy)){
#else
while(!std::atomic_compare_exchange_strong(&k->lock, &expected, localBusy)){
#endif
Loading