some debugging code.

This commit is contained in:
crs
2001-10-14 19:16:54 +00:00
parent b3291bc2b5
commit 9435639545
3 changed files with 18 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
#include "XThread.h"
#include "CLock.h"
#include "CStopwatch.h"
#include "CLog.h"
//
// CThreadPtr
@@ -75,6 +76,8 @@ void CThread::sleep(double timeout)
void CThread::exit(void* result)
{
CThreadPtr currentRep(CThreadRep::getCurrentThreadRep());
log((CLOG_DEBUG "throw exit on thread %p", currentRep.operator->()));
throw XThreadExit(result);
}