diff options
Diffstat (limited to 'moses/thread_safe_container.h')
-rw-r--r-- | moses/thread_safe_container.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/thread_safe_container.h b/moses/thread_safe_container.h index 6a977185b..0045c73a9 100644 --- a/moses/thread_safe_container.h +++ b/moses/thread_safe_container.h @@ -99,7 +99,7 @@ public: } VAL const* get(KEY const& key, VAL const& default_val) { - boost::shared_lock< boost::shared_mutex > lock(m_lock); + boost::unique_lock< boost::shared_mutex > lock(m_lock); entry_t entry(key, default_val); iter_t foo = m_container.insert(entry).first; return &(foo->second); |