From: Michal 'vorner' Vaner Date: Mon, 1 Oct 2012 13:37:38 +0000 (+0200) Subject: [2202] More detail in TODO comment X-Git-Tag: trac2402_base~79^2~5^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd5bb15644a8e6d0df49d93ee8e982d2d0d463ea;p=thirdparty%2Fkea.git [2202] More detail in TODO comment --- diff --git a/src/bin/auth/tests/auth_srv_unittest.cc b/src/bin/auth/tests/auth_srv_unittest.cc index de1a9ec29f..494540ee50 100644 --- a/src/bin/auth/tests/auth_srv_unittest.cc +++ b/src/bin/auth/tests/auth_srv_unittest.cc @@ -1802,7 +1802,9 @@ TEST_F(AuthSrvTest, clientList) { // We just test the mutex can be locked (exactly once). TEST_F(AuthSrvTest, mutex) { isc::util::thread::Mutex::Locker l1(server.getClientListMutex()); - // TODO: Once we have non-debug build, this one will not work. + // TODO: Once we have non-debug build, this one will not work, since + // we currently use the fact that we can't lock twice from the same + // thread. In the non-debug mode, this would deadlock. // Skip then. EXPECT_THROW({ isc::util::thread::Mutex::Locker l2(server.getClientListMutex());