diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-06-20 09:03:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-06-20 10:19:33 +0200 |
commit | 6ad13e0e5d1caa8e1ffcf7092e1c04011b5df055 (patch) | |
tree | 7c23a0cecafd94959d26909cfe0199f5e7f20253 /package/source | |
parent | b520005b1d42ce80296cbbc6b4fc3cc5e5d8cae0 (diff) |
Demote from std::unique_lock to std::scoped_lock where applicable
Change-Id: I53a019f05978bab62ad0da3d0eb08f37f8ec1e18
Reviewed-on: https://gerrit.libreoffice.org/74414
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'package/source')
-rw-r--r-- | package/source/zipapi/XBufferedThreadedStream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/zipapi/XBufferedThreadedStream.cxx b/package/source/zipapi/XBufferedThreadedStream.cxx index 6bc7da7fa173..aeeb6956304b 100644 --- a/package/source/zipapi/XBufferedThreadedStream.cxx +++ b/package/source/zipapi/XBufferedThreadedStream.cxx @@ -125,7 +125,7 @@ const Buffer& XBufferedThreadedStream::getNextBlock() void XBufferedThreadedStream::setTerminateThread() { - std::unique_lock<std::mutex> aGuard( maBufferProtector ); + std::scoped_lock<std::mutex> aGuard( maBufferProtector ); mbTerminateThread = true; maBufferProduceResume.notify_one(); maBufferConsumeResume.notify_one(); |