Browse Source

[2198] Update comment

Mukund Sivaraman 12 years ago
parent
commit
9a85c00b16
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/util/threads/tests/lock_unittest.cc

+ 3 - 2
src/lib/util/threads/tests/lock_unittest.cc

@@ -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);