]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2198] Update comment
authorMukund Sivaraman <muks@isc.org>
Mon, 15 Oct 2012 04:31:18 +0000 (10:01 +0530)
committerMukund Sivaraman <muks@isc.org>
Sun, 21 Oct 2012 23:44:37 +0000 (05:14 +0530)
src/lib/util/threads/tests/lock_unittest.cc

index 3fdee2807956ae9aa27f78dfe82b949285f37e09..8948f573ecf6c2ebb37cb61f9b40f7acebfd9c73 100644 (file)
@@ -49,8 +49,9 @@ TEST(MutexTest, lockMultiple) {
 void*
 testThread(Mutex* mutex)
 {
-    // This should not block indefinitely, but throw AlreadyLocked.
-    // block=false (tryLock).
+    // block=false (tryLock).  This should not block indefinitely, but
+    // throw AlreadyLocked. If block were true, this would block
+    // indefinitely here.
     EXPECT_THROW({
         Mutex::Locker l3(*mutex, false);
     }, Mutex::Locker::AlreadyLocked);