aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-12 22:15:35 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-12 23:09:47 +0000
commit7a453c8d9952e7d101077408e576a8585b6a4894 (patch)
tree48c3c91c567518022ec59e1f418123711c294cfe
parent54cd32ba322f2601fd9a2fc4951778a54bf9dfe0 (diff)
downloadpaludis-7a453c8d9952e7d101077408e576a8585b6a4894.tar.gz
paludis-7a453c8d9952e7d101077408e576a8585b6a4894.tar.xz
Executor::exclusivity_mutex
-rw-r--r--paludis/util/executor.cc6
-rw-r--r--paludis/util/executor.hh3
2 files changed, 9 insertions, 0 deletions
diff --git a/paludis/util/executor.cc b/paludis/util/executor.cc
index 37df8ec..be4aeb1 100644
--- a/paludis/util/executor.cc
+++ b/paludis/util/executor.cc
@@ -165,5 +165,11 @@ Executor::execute()
}
}
+Mutex &
+Executor::exclusivity_mutex()
+{
+ return _imp->mutex;
+}
+
template class Pimp<Executor>;
diff --git a/paludis/util/executor.hh b/paludis/util/executor.hh
index 9b61509..9f33cd1 100644
--- a/paludis/util/executor.hh
+++ b/paludis/util/executor.hh
@@ -23,6 +23,7 @@
#include <paludis/util/executor-fwd.hh>
#include <paludis/util/pimp.hh>
#include <paludis/util/attributes.hh>
+#include <paludis/util/mutex-fwd.hh>
#include <string>
#include <memory>
@@ -61,6 +62,8 @@ namespace paludis
void add(const std::shared_ptr<Executive> & x);
void execute();
+
+ Mutex & exclusivity_mutex() PALUDIS_ATTRIBUTE((warn_unused_result));
};
extern template class Pimp<Executor>;