summaryrefslogtreecommitdiff
path: root/framework/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-18 19:03:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-20 09:25:41 +0100
commit95b7ecbbdb445a8f2408d1b0b3d32cb799d15568 (patch)
treead91717d3802f2ee5cda0362465d5127f625966a /framework/inc
parent00eb9b8954a129fb365191ce8cdcbc4cf66a7333 (diff)
osl::Mutex->std::mutex in WakeUpThread
Change-Id: I469fa855eb373829f23232875669f607dcb0c6a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127104 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc')
-rw-r--r--framework/inc/helper/wakeupthread.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/framework/inc/helper/wakeupthread.hxx b/framework/inc/helper/wakeupthread.hxx
index f9099180d03f..cdc8700a5266 100644
--- a/framework/inc/helper/wakeupthread.hxx
+++ b/framework/inc/helper/wakeupthread.hxx
@@ -23,8 +23,8 @@
#include <com/sun/star/uno/Reference.hxx>
#include <cppuhelper/weakref.hxx>
-#include <osl/conditn.hxx>
-#include <osl/mutex.hxx>
+#include <condition_variable>
+#include <mutex>
#include <salhelper/thread.hxx>
namespace com::sun::star::util
@@ -37,9 +37,8 @@ namespace framework
class WakeUpThread final : public salhelper::Thread
{
css::uno::WeakReference<css::util::XUpdatable> updatable_;
- osl::Condition condition_;
-
- osl::Mutex mutex_;
+ std::condition_variable condition_;
+ std::mutex mutex_;
bool terminate_;
void execute() override;