Better debugging of the signalling thread.

git-svn-id: http://voip.null.ro/svn/yate@981 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2006-07-19 15:27:22 +00:00
parent 4d69466d88
commit 526c10ebe4
1 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ class WpSigThread : public Thread
{
public:
inline WpSigThread(WpInterface* iface)
: m_interface(iface)
: Thread("WpSignal"), m_interface(iface)
{ }
virtual ~WpSigThread();
virtual void run();
@ -282,14 +282,14 @@ void WpInterface::timerTick(const Time& when)
WpSigThread::~WpSigThread()
{
Debug(m_interface,DebugAll,"WpSigThread::~WpSigThread() [%p]",this);
DDebug(m_interface,DebugAll,"WpSigThread::~WpSigThread() [%p]",this);
if (m_interface)
m_interface->m_thread = 0;
}
void WpSigThread::run()
{
Debug(m_interface,DebugAll,"WpSigThread::run() [%p]",this);
DDebug(m_interface,DebugAll,"WpSigThread::run() [%p]",this);
for (;;) {
Thread::yield(true);
while (m_interface && m_interface->receiveAttempt())