Skip to content

Commit

Permalink
Make mutex a static member
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerkaraszewski committed Jan 25, 2018
1 parent d0fa398 commit 6bf8274
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/BedrockTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
string BedrockTester::defaultDBFile;
string BedrockTester::defaultServerAddr;
SData BedrockTester::globalArgs;
mutex _testersMutex;
mutex BedrockTester::_testersMutex;
set<BedrockTester*> BedrockTester::_testers;
list<string> BedrockTester::locations = {
"../bedrock",
Expand Down
3 changes: 3 additions & 0 deletions test/lib/BedrockTester.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,7 @@ class BedrockTester {

// A version of the DB that can be queries without going through bedrock.
SQLite* _db = 0;

// For locking around changes to the _testers list.
static mutex _testersMutex;
};

0 comments on commit 6bf8274

Please sign in to comment.