ASSERT_FALSE(wthread_->isReady(WatchedThread::TERMINATE));
// Wait a little while.
- nap(3);
+ nap(8);
// Tell it to stop.
wthread_->stop();
ASSERT_FALSE(wthread_->isReady(WatchedThread::TERMINATE));
// Wait a little while.
- nap(3);
+ nap(8);
// It should now indicate an error.
ASSERT_TRUE(wthread_->isReady(WatchedThread::ERROR));
ASSERT_FALSE(wthread_->isReady(WatchedThread::TERMINATE));
// Wait a little while.
- nap(3);
+ nap(8);
// It should now indicate data ready.
ASSERT_TRUE(wthread_->isReady(WatchedThread::READY));
/// -# READY - Marked as ready by the thread when it needs attention for a normal event
/// (e.g. a thread used to receive data would mark READY when it has data available)
/// -# TERMINATE - Marked as ready by WatchedThread owner to instruct the thread to
- /// terminate. Worker functions must monitor TERMINATa by periodically calling
+ /// terminate. Worker functions must monitor TERMINATE by periodically calling
/// @c shouldTerminate
WatchSocket sockets_[TERMINATE + 1];