]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#260,!120] Minor fixes as a result of review.
authorMarcin Siodelski <marcin@isc.org>
Tue, 20 Nov 2018 16:24:15 +0000 (17:24 +0100)
committerThomas Markwalder <tmark@isc.org>
Tue, 20 Nov 2018 18:25:03 +0000 (13:25 -0500)
src/lib/util/threads/tests/watched_thread_unittest.cc
src/lib/util/threads/watched_thread.h

index 0cdc8ce9e186c7ac6c41623e709d520767a71366..834dad06045decd30357dcb9c7311e32fc9cb88d 100644 (file)
@@ -131,7 +131,7 @@ TEST_F(WatchedThreadTest, watchedThreadClassBasics) {
     ASSERT_FALSE(wthread_->isReady(WatchedThread::TERMINATE));
 
     // Wait a little while.
-    nap(3);
+    nap(8);
 
     // Tell it to stop.
     wthread_->stop();
@@ -158,7 +158,7 @@ TEST_F(WatchedThreadTest, watchedThreadClassBasics) {
     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));
@@ -189,7 +189,7 @@ TEST_F(WatchedThreadTest, watchedThreadClassBasics) {
     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));
index d0243be032f74bd989228891fb9eb546188ddf60..6a6855b3870ebb021489e370185239bc138179e1 100644 (file)
@@ -111,7 +111,7 @@ public:
     /// -# 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];