Merge pull request #657 from facebook/marpaia-patch-1

static lock in config.cpp
This commit is contained in:
Mike Arpaia 2015-01-21 13:33:35 -08:00
commit 248f8b90e6

View File

@ -32,7 +32,7 @@ DEFINE_osquery_flag(string,
"filesystem",
"Config type (plugin).");
boost::shared_mutex rw_lock;
static boost::shared_mutex rw_lock;
std::shared_ptr<Config> Config::getInstance() {
static std::shared_ptr<Config> config = std::shared_ptr<Config>(new Config());