From b43d23f520f7fa15c96c52eb52a68926031e4067 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Sat, 28 Feb 2009 14:06:20 +0100 Subject: Rewritten CCpp hook and removed dealock in DebugDumps lib (zprikryl) --- lib/Utils/DebugDump.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index 89be923e..fcd3b728 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -108,11 +108,13 @@ void CDebugDump::Lock() pid_t nPID = getpid(); std::stringstream ss; ss << nPID; + std::cerr << "CDebugDump::Lock(): waiting..."; while (!GetAndSetLock(lockPath, ss.str())) { - std::cerr << "CDebugDump::Lock(): waiting..." << std::endl; - usleep(100); + std::cerr << "."; + usleep(5000); } + std::cerr << "done." << std::endl; } void CDebugDump::UnLock() -- cgit