From 947ec5cdb27abb17be045660729ff280e239cf0e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 17 Nov 2016 18:29:35 +1100 Subject: [PATCH] stringid: remove explicit synchronisation It is more appropriate to synchronise externally, and it simplifies building across mingw which lacks std::mutex and friends. --- stringid.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stringid.cpp b/stringid.cpp index f38c2d61..fad528d5 100644 --- a/stringid.cpp +++ b/stringid.cpp @@ -17,7 +17,6 @@ #include "stringid.hpp" #include -#include using util::stringid; @@ -29,9 +28,6 @@ stringid::add (const std::string key) { if (pos != m_map.end ()) throw std::invalid_argument ("duplicate stringid key"); - static std::mutex s_lock; - std::lock_guard guard (s_lock); - id_t id = m_map.size (); m_map[key] = id; return id;