Skip to content

Commit

Permalink
Update pnset.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
javadsaberlatibari authored Mar 15, 2024
1 parent 138a039 commit 94ca36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wellcoordination/benchmark/pnset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PNSet : public ReplicatedObject
// 0
void add(std::string a)
{
bool find false;
bool find=false;
while(lock.load());
lock.store(true);
find=false;
Expand Down Expand Up @@ -135,4 +135,4 @@ class PNSet : public ReplicatedObject
{
return true;
}
};
};

0 comments on commit 94ca36d

Please sign in to comment.