From 6bf82743fca070811908685500098c89da57ccab Mon Sep 17 00:00:00 2001 From: Tyler Karaszewski Date: Wed, 24 Jan 2018 17:26:14 -0800 Subject: [PATCH] Make mutex a static member --- test/lib/BedrockTester.cpp | 2 +- test/lib/BedrockTester.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/lib/BedrockTester.cpp b/test/lib/BedrockTester.cpp index 7c0a6899f..ba8eaa808 100644 --- a/test/lib/BedrockTester.cpp +++ b/test/lib/BedrockTester.cpp @@ -5,7 +5,7 @@ string BedrockTester::defaultDBFile; string BedrockTester::defaultServerAddr; SData BedrockTester::globalArgs; -mutex _testersMutex; +mutex BedrockTester::_testersMutex; set BedrockTester::_testers; list BedrockTester::locations = { "../bedrock", diff --git a/test/lib/BedrockTester.h b/test/lib/BedrockTester.h index 29b4d5ef3..1cdbfcc1a 100644 --- a/test/lib/BedrockTester.h +++ b/test/lib/BedrockTester.h @@ -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; };