summaryrefslogtreecommitdiffstats
path: root/sal/qa/osl/mutex/osl_Mutex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/qa/osl/mutex/osl_Mutex.cxx')
-rw-r--r--sal/qa/osl/mutex/osl_Mutex.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sal/qa/osl/mutex/osl_Mutex.cxx b/sal/qa/osl/mutex/osl_Mutex.cxx
index 90f5b31e2c79..c9959038c5ea 100644
--- a/sal/qa/osl/mutex/osl_Mutex.cxx
+++ b/sal/qa/osl/mutex/osl_Mutex.cxx
@@ -34,10 +34,7 @@ namespace ThreadHelper
{
void thread_sleep_tenth_sec(sal_uInt32 _nTenthSec)
{
- TimeValue nTV;
- nTV.Seconds = _nTenthSec/10;
- nTV.Nanosec = ( (_nTenthSec%10 ) * 100000000 );
- osl_waitThread(&nTV);
+ osl::Thread::wait(std::chrono::milliseconds(_nTenthSec * 100));
}
void thread_sleep( sal_uInt32 _nSec )
{