diff --git a/src/thread/thread.cpp b/src/thread/thread.cpp index 4de4344..0a929eb 100644 --- a/src/thread/thread.cpp +++ b/src/thread/thread.cpp @@ -178,7 +178,7 @@ namespace fc { void thread::sleep_until( const time_point& tp ) { //ilog( "sleep until ${tp} wait: ${delta}", ("tp",tp)("delta",(tp-fc::time_point::now()).count()) ); - if( tp <= (time_point::now()+fc::microseconds(500)) ) + if( tp <= (time_point::now()+fc::microseconds(10000)) ) { this->yield(true); } diff --git a/src/thread/thread_d.hpp b/src/thread/thread_d.hpp index b482b2e..8f5237f 100644 --- a/src/thread/thread_d.hpp +++ b/src/thread/thread_d.hpp @@ -447,7 +447,7 @@ namespace fc { void yield_until( const time_point& tp, bool reschedule ) { check_fiber_exceptions(); - if( tp <= (time_point::now()+fc::microseconds(500)) ) + if( tp <= (time_point::now()+fc::microseconds(10000)) ) { return; }