Print thread name when hard cancelling - helps in detecting potential problems.
git-svn-id: http://voip.null.ro/svn/yate@1661 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
3969214d9b
commit
9a33015070
|
@ -305,10 +305,12 @@ bool ThreadPrivate::cancel(bool hard)
|
|||
}
|
||||
m_running = false;
|
||||
#ifdef _WINDOWS
|
||||
Debug(DebugGoOn,"ThreadPrivate terminating win32 thread %lu [%p]",thread,this);
|
||||
Debug(DebugGoOn,"ThreadPrivate '%s' terminating win32 thread %lu [%p]",
|
||||
m_name,thread,this);
|
||||
ret = ::TerminateThread(reinterpret_cast<HANDLE>(thread),0) != 0;
|
||||
#else
|
||||
Debug(critical ? DebugInfo : DebugWarn,"ThreadPrivate terminating pthread %p [%p]",&thread,this);
|
||||
Debug(critical ? DebugInfo : DebugWarn,"ThreadPrivate '%s' terminating pthread %p [%p]",
|
||||
m_name,&thread,this);
|
||||
ret = !::pthread_cancel(thread);
|
||||
#endif
|
||||
if (ret) {
|
||||
|
|
Loading…
Reference in New Issue