Commit 9a85c00b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2198] Update comment

parent 9de48090
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment