diff options
Diffstat (limited to 'sal/qa/rtl/doublelock/rtl_doublelocking.cxx')
-rw-r--r-- | sal/qa/rtl/doublelock/rtl_doublelocking.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx index f882b104c9bc..e37400ba7f8f 100644 --- a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx +++ b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx @@ -67,15 +67,7 @@ namespace ThreadHelper // printf("wait %d tenth seconds. ", _nTenthSec ); // fflush(stdout); // } -#ifdef _WIN32 //Windows - Sleep(_nTenthSec * 100 ); -#endif -#if ( defined UNX ) - TimeValue nTV; - nTV.Seconds = static_cast<sal_uInt32>( _nTenthSec/10 ); - nTV.Nanosec = ( (_nTenthSec%10 ) * 100000000 ); - osl_waitThread(&nTV); -#endif + osl::Thread::wait(std::chrono::milliseconds(_nTenthSec * 100)); // if (nVerbose == VERBOSE) // { // printf("done\n"); |