aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_string_set_key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/e_string_set_key.cc')
-rw-r--r--paludis/repositories/e/e_string_set_key.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/repositories/e/e_string_set_key.cc b/paludis/repositories/e/e_string_set_key.cc
index b2cde9a24..0252666e0 100644
--- a/paludis/repositories/e/e_string_set_key.cc
+++ b/paludis/repositories/e/e_string_set_key.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2011 Ciaran McCreesh
+ * Copyright (c) 2011, 2013 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -130,7 +130,7 @@ namespace paludis
template <>
struct Imp<EStringSetKeyStore>
{
- mutable Mutex mutex;
+ mutable std::mutex mutex;
mutable std::unordered_map<EStringSetKeyStoreIndex, std::shared_ptr<const EStringSetKey>, EStringSetKeyHash, EStringSetKeyStoreCompare> store;
};
}
@@ -148,7 +148,7 @@ EStringSetKeyStore::fetch(
const std::string & s,
const MetadataKeyType t) const
{
- Lock lock(_imp->mutex);
+ std::unique_lock<std::mutex> lock(_imp->mutex);
auto k(std::make_shared<Set<std::string> >());
tokenise_whitespace(s, k->inserter());