mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Merge pull request #657 from facebook/marpaia-patch-1
static lock in config.cpp
This commit is contained in:
commit
248f8b90e6
@ -32,7 +32,7 @@ DEFINE_osquery_flag(string,
|
|||||||
"filesystem",
|
"filesystem",
|
||||||
"Config type (plugin).");
|
"Config type (plugin).");
|
||||||
|
|
||||||
boost::shared_mutex rw_lock;
|
static boost::shared_mutex rw_lock;
|
||||||
|
|
||||||
std::shared_ptr<Config> Config::getInstance() {
|
std::shared_ptr<Config> Config::getInstance() {
|
||||||
static std::shared_ptr<Config> config = std::shared_ptr<Config>(new Config());
|
static std::shared_ptr<Config> config = std::shared_ptr<Config>(new Config());
|
||||||
|
Loading…
Reference in New Issue
Block a user