Add comment to `MilliSleep` documenting that it is an interruption point.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2020-03-08 10:54:37 +00:00
parent 99dc6de485
commit 3c573f2485
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ int64_t GetTimeMicros()
void MilliSleep(int64_t n)
{
// This is defined to be an interruption point.
// <https://www.boost.org/doc/libs/1_70_0/doc/html/thread/thread_management.html#interruption_points>
boost::this_thread::sleep_for(boost::chrono::milliseconds(n));
}