diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-08-01 13:09:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-01 21:02:10 +0200 |
commit | c1f2e972a758ba51a5c3e94f6c498f84766f586d (patch) | |
tree | d8cb324771d311d7a7b8f078ac0257f63c0841f2 /sd | |
parent | e5d3ea2531210219cf5cd10a861aed0ad93ba07f (diff) |
osl::Mutex->std::mutex in QueueProcessor
Change-Id: Iebbfa22f90ea686cf4a38a0b76b5bbe2db838a5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119823
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx index 6a7772cd75de..d515d21cf580 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx @@ -145,7 +145,7 @@ void QueueProcessor::ProcessOneRequest ( { try { - ::osl::MutexGuard aGuard (maMutex); + std::lock_guard aGuard (maMutex); // Create a new preview bitmap and store it in the cache. if (mpCache != nullptr && mpCacheContext) diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx index f29d996c6fa8..0035bcbce7e1 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx @@ -24,6 +24,7 @@ #include "SlsBitmapFactory.hxx" #include <vcl/timer.hxx> +#include <mutex> namespace sd::slidesorter::cache { @@ -74,7 +75,7 @@ private: /** This mutex is used to guard the queue processor. Be careful not to mix its use with that of the solar mutex. */ - ::osl::Mutex maMutex; + std::mutex maMutex; Timer maTimer; DECL_LINK(ProcessRequestHdl, Timer *, void); |