diff options
author | Fakabbir Amin <fakabbir@gmail.com> | 2017-02-17 19:48:40 +0530 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-20 08:57:03 +0000 |
commit | 12fc1d5399a688a80eec2565a4b552377e428ab7 (patch) | |
tree | cc05c223ea6b15edc2220aca1bf0a2975743565e /configmgr | |
parent | b8d8fb3f0cf4a961bbff54523eaca1a4f8179c7a (diff) |
tdf#84323: Make osl::Condition::wait more readable
Improved readability of calls to osl::Condition::wait.
Change-Id: I69fb9815561013f1eb9fd4a649e32902e09473c6
Reviewed-on: https://gerrit.libreoffice.org/34399
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/components.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx index 7fdb43a3497b..39783056aa2e 100644 --- a/configmgr/source/components.cxx +++ b/configmgr/source/components.cxx @@ -21,6 +21,7 @@ #include <algorithm> #include <cassert> +#include <chrono> #include <cstddef> #include <list> #include <set> @@ -178,8 +179,7 @@ Components::WriteThread::WriteThread( } void Components::WriteThread::execute() { - TimeValue t = { 1, 0 }; // 1 sec - delay_.wait(&t); // must not throw; result_error is harmless and ignored + delay_.wait(std::chrono::seconds(1)); // must not throw; result_error is harmless and ignored osl::MutexGuard g(*lock_); // must not throw try { try { |