mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 22:25:53 +08:00
Added more debug levels and moved some annoying debug messages
to those levels. Default log level is now DEBUG for debug builds and INFO for release builds.
This commit is contained in:
@@ -18,19 +18,19 @@ CTimerThread::CTimerThread(double timeout) : m_timeout(timeout)
|
||||
|
||||
CTimerThread::~CTimerThread()
|
||||
{
|
||||
log((CLOG_DEBUG "cancelling timeout"));
|
||||
log((CLOG_DEBUG1 "cancelling timeout"));
|
||||
m_timingThread->cancel();
|
||||
m_timingThread->wait();
|
||||
log((CLOG_DEBUG "cancelled timeout"));
|
||||
log((CLOG_DEBUG1 "cancelled timeout"));
|
||||
delete m_timingThread;
|
||||
delete m_callingThread;
|
||||
}
|
||||
|
||||
void CTimerThread::timer(void*)
|
||||
{
|
||||
log((CLOG_DEBUG "timeout in %f seconds", m_timeout));
|
||||
log((CLOG_DEBUG1 "timeout in %f seconds", m_timeout));
|
||||
CThread::sleep(m_timeout);
|
||||
log((CLOG_DEBUG "timeout"));
|
||||
log((CLOG_DEBUG1 "timeout"));
|
||||
m_callingThread->cancel();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user