]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2202] More detail in TODO comment
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 1 Oct 2012 13:37:38 +0000 (15:37 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 1 Oct 2012 13:37:38 +0000 (15:37 +0200)
src/bin/auth/tests/auth_srv_unittest.cc

index de1a9ec29f8f78449444bf0bcbf26c60365894a9..494540ee50231f1bb82353ec3c1d19aecc7d4092 100644 (file)
@@ -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());