From: Mukund Sivaraman Date: Mon, 15 Oct 2012 04:31:18 +0000 (+0530) Subject: [2198] Update comment X-Git-Tag: trac2402_base~10^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a85c00b1675644dcdfea3e344ee72a42558d1aa;p=thirdparty%2Fkea.git [2198] Update comment --- diff --git a/src/lib/util/threads/tests/lock_unittest.cc b/src/lib/util/threads/tests/lock_unittest.cc index 3fdee28079..8948f573ec 100644 --- a/src/lib/util/threads/tests/lock_unittest.cc +++ b/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);