From 3bc5699ba1f73d5fdd5571a2b2de1255842504db Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 26 Jul 2015 09:42:14 -0700 Subject: [PATCH] Storage: Provide accessor for global mutex. --- src/Storage.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Storage.h b/src/Storage.h index 7e4c3c0b69..b849675f17 100644 --- a/src/Storage.h +++ b/src/Storage.h @@ -97,6 +97,7 @@ class Storage { void EnableUpdates() { m_updates_enabled = true; } void DisableUpdates() { m_updates_enabled = false; } UpdateQueue& updates() { return m_updates; } + std::mutex& mutex() { return m_mutex; } // User functions std::shared_ptr GetEntryValue(StringRef name) const;