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

Remove useless statements

parent e38f1267
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
......@@ -18,10 +18,8 @@ public:
void lock(const int inKey){
volatile long int* k = keys[inKey%keys.size()].get();
long int res = 1;
int cpt = 0;
while(res == 1){
res = __sync_val_compare_and_swap(k, 0, res);
cpt++;
}
}
......
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