summaryrefslogtreecommitdiffstats
path: root/cppu/source/threadpool/jobqueue.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/source/threadpool/jobqueue.hxx')
-rw-r--r--cppu/source/threadpool/jobqueue.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/cppu/source/threadpool/jobqueue.hxx b/cppu/source/threadpool/jobqueue.hxx
index a0ccf5430385..5a5c80479d2b 100644
--- a/cppu/source/threadpool/jobqueue.hxx
+++ b/cppu/source/threadpool/jobqueue.hxx
@@ -20,12 +20,14 @@
#ifndef INCLUDED_CPPU_SOURCE_THREADPOOL_JOBQUEUE_HXX
#define INCLUDED_CPPU_SOURCE_THREADPOOL_JOBQUEUE_HXX
+#include <sal/config.h>
+
+#include <condition_variable>
#include <deque>
#include <memory>
-#include <sal/types.h>
+#include <mutex>
-#include <osl/conditn.hxx>
-#include <osl/mutex.hxx>
+#include <sal/types.h>
namespace cppu_threadpool
{
@@ -58,12 +60,12 @@ namespace cppu_threadpool
bool isBusy() const;
private:
- mutable ::osl::Mutex m_mutex;
+ mutable std::mutex m_mutex;
std::deque < struct Job > m_lstJob;
std::deque<void const *> m_lstCallstack;
sal_Int32 m_nToDo;
bool m_bSuspended;
- osl::Condition m_cndWait;
+ std::condition_variable m_cndWait;
DisposedCallerAdminHolder m_DisposedCallerAdmin;
};
}