diff options
Diffstat (limited to 'io/test/testconnection.cxx')
-rw-r--r-- | io/test/testconnection.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/io/test/testconnection.cxx b/io/test/testconnection.cxx index 69a2bdeccfb8..68621643f0ec 100644 --- a/io/test/testconnection.cxx +++ b/io/test/testconnection.cxx @@ -127,8 +127,7 @@ void testConnection( const OUString &sConnectionDescription , try { // Why is this wait necessary ???? - TimeValue value = {1,0}; - osl_waitThread( &value ); + osl::Thread::wait(std::chrono::seconds(1)); r = rConnector->connect( sConnectionDescription ); OSL_ASSERT( r.is() ); doWrite( r ); @@ -238,8 +237,7 @@ int SAL_CALL main( int argc, char * argv[] ) MyThread thread( rAcceptor , OUString("socket,host=localhost,port=2001") ); thread.create(); - TimeValue value = {0,1}; - osl_waitThread( &value ); + osl::Thread::wait(std::chrono::nanoseconds(1)); try { rAcceptor->accept( OUString("socket,host=localhost,port=2001") ); |