summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorFakabbir Amin <fakabbir@gmail.com>2017-02-17 19:48:40 +0530
committerAndras Timar <andras.timar@collabora.com>2017-02-28 11:15:33 +0100
commita1e6cc8072d530a728a76ec0cdc847281bde4019 (patch)
tree25cdf5a55e14f70035a30dfa40e5d125d6019dd7 /configmgr
parent6c2c2322fd18e627f3fa98f7de8092e0e526bc7e (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> (cherry picked from commit 12fc1d5399a688a80eec2565a4b552377e428ab7)
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/components.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index 7eb87968811a..dfd72dc43b40 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 {