summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-09 13:09:06 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-09 13:09:06 +0100
commitb4750c3cae0184d4aec5e7b2c557524e75f836d8 (patch)
treeea0cfcd32366c8f2da3e298ae96db6121af9dfd2
parentUpgrade to Ice-3.7 (diff)
downloadnetfs-b4750c3cae0184d4aec5e7b2c557524e75f836d8.tar.bz2
netfs-b4750c3cae0184d4aec5e7b2c557524e75f836d8.tar.xz
netfs-b4750c3cae0184d4aec5e7b2c557524e75f836d8.zip
C++17
Replace boost shared_mutex with std::mutex to work with new lock helpers.
-rw-r--r--netfs/lib/entCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/netfs/lib/entCache.h b/netfs/lib/entCache.h
index 1ded6ee..cbf5894 100644
--- a/netfs/lib/entCache.h
+++ b/netfs/lib/entCache.h
@@ -6,7 +6,7 @@
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
-#include <boost/thread/shared_mutex.hpp>
+#include <shared_mutex>
#include <entryResolver.h>
class User {
@@ -56,7 +56,7 @@ class EntCache : public EntryResolver<decltype(entry_t::id)> {
boost::multi_index::tag<std::string>, BOOST_MULTI_INDEX_MEMBER(entry_t, const std::string, name)>
> > IDs;
mutable IDs idcache;
- mutable boost::shared_mutex lock;
+ mutable std::shared_mutex lock;
mutable time_t fillTime;
};