Skip to content
Snippets Groups Projects
Commit 0913ad83 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

From Gerri:

- notify timeout condition only if gDebug > 0


git-svn-id: http://root.cern.ch/svn/root/trunk@15297 27541ba8-7e3a-0410-8455-c3a389f83636
parent 9241df02
No related branches found
No related tags found
No related merge requests found
// @(#)root/thread:$Name: $:$Id: TSemaphore.cxx,v 1.3 2005/12/09 15:12:19 rdm Exp $ // @(#)root/thread:$Name: $:$Id: TSemaphore.cxx,v 1.4 2006/05/23 07:43:55 brun Exp $
// Author: Fons Rademakers 02/07/97 // Author: Fons Rademakers 02/07/97
/************************************************************************* /*************************************************************************
...@@ -63,8 +63,13 @@ Int_t TSemaphore::Wait(Int_t millisec) ...@@ -63,8 +63,13 @@ Int_t TSemaphore::Wait(Int_t millisec)
: fCond.Wait(); : fCond.Wait();
if (crc != 0) { if (crc != 0) {
Error("Wait", "TCondition::Wait() returns %d [%ld]", if (crc == 1 && gDebug > 0) {
crc, TThread::SelfId()); Info("Wait", "TCondition::Wait() returns %d [%ld]",
crc, TThread::SelfId());
} else if (crc != 1) {
Error("Wait", "TCondition::Wait() returns %d [%ld]",
crc, TThread::SelfId());
}
if ((rc = fMutex.UnLock())) if ((rc = fMutex.UnLock()))
Error("Wait", "UnLock on error returns %d [%ld]", Error("Wait", "UnLock on error returns %d [%ld]",
rc, TThread::SelfId()); rc, TThread::SelfId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment