summaryrefslogtreecommitdiff
path: root/sal/qa/osl
diff options
context:
space:
mode:
Diffstat (limited to 'sal/qa/osl')
-rw-r--r--sal/qa/osl/thread/test_thread.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/osl/thread/test_thread.cxx b/sal/qa/osl/thread/test_thread.cxx
index 5030af1df57f..12ddafc6d792 100644
--- a/sal/qa/osl/thread/test_thread.cxx
+++ b/sal/qa/osl/thread/test_thread.cxx
@@ -24,6 +24,7 @@
#include "osl/conditn.hxx"
#include "osl/thread.hxx"
#include "osl/time.h"
+#include <chrono>
namespace {
@@ -62,8 +63,7 @@ public:
// terminates:
global.set();
// Give the spawned threads enough time to terminate:
- TimeValue const twentySeconds = { 20, 0 };
- osl::Thread::wait(twentySeconds);
+ osl::Thread::wait(std::chrono::seconds(20));
}
CPPUNIT_TEST_SUITE(Test);