Commit 0478a204 authored by neverlord's avatar neverlord

sleep_for -> this_thread::sleep_for

parent b3471511
...@@ -109,7 +109,7 @@ struct thread_pool_scheduler::worker ...@@ -109,7 +109,7 @@ struct thread_pool_scheduler::worker
timeout += boost::posix_time::milliseconds(1); timeout += boost::posix_time::milliseconds(1);
boost::this_thread::sleep(timeout); boost::this_thread::sleep(timeout);
# else # else
std::sleep_for(std::chrono::milliseconds(1)); std::this_thread::sleep_for(std::chrono::milliseconds(1));
# endif # endif
} }
return result; return result;
...@@ -130,7 +130,7 @@ struct thread_pool_scheduler::worker ...@@ -130,7 +130,7 @@ struct thread_pool_scheduler::worker
timeout += boost::posix_time::milliseconds(10); timeout += boost::posix_time::milliseconds(10);
boost::this_thread::sleep(timeout); boost::this_thread::sleep(timeout);
# else # else
std::sleep_for(std::chrono::milliseconds(10)); std::this_thread::sleep_for(std::chrono::milliseconds(10));
# endif # endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment