aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 37df8ec65..be4aeb128 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 9b61509dd..9f33cd142 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>;