Skip to content

Commit

Permalink
Use portable boost::this_thread::sleep() to sleep so it can be built …
Browse files Browse the repository at this point in the history
…on Windows (#112)
  • Loading branch information
johnsonshih authored and mikaelarguedas committed Aug 4, 2018
1 parent 6166809 commit a241fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/destruction_guard_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TestRunner : public testing::Test
// Don't destruct the protectors immeadiately. Sleep for a little bit, and then destruct.
// This will force the main thread to have to wait in it's destruct() call
printf("protecting thread is sleeping\n");
usleep(5000000);
boost::this_thread::sleep(boost::posix_time::microseconds(5000000));
printf("protecting thread is exiting\n");
}

Expand Down

0 comments on commit a241fa9

Please sign in to comment.