Thread killer removed (commented).

parent bcc86cca
......@@ -2,7 +2,7 @@
* thread.cpp: thread management
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: thread.cpp,v 1.1 2001/10/06 21:23:36 bozo Exp $
* $Id: thread.cpp,v 1.2 2001/10/07 12:26:45 bozo Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
*
......@@ -64,7 +64,7 @@
//******************************************************************************
//
//******************************************************************************
/*
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
......@@ -202,7 +202,7 @@ void C_ThreadKiller::Kill(C_Thread* pThread)
else
m_cLock.UnLock();
}
*/
//******************************************************************************
......@@ -215,7 +215,7 @@ void C_ThreadKiller::Kill(C_Thread* pThread)
// Instanciation of the static list of running threads and of the thread killer
//------------------------------------------------------------------------------
C_List<C_Thread> C_Thread::s_cThreadList;
C_ThreadKiller s_cThreadKiller;
//C_ThreadKiller s_cThreadKiller;
//------------------------------------------------------------------------------
......@@ -330,7 +330,8 @@ void C_Thread::Stop()
// itself, we ask another thread (the killer) to do the job.
if(pthread_self() == tId)
{
s_cThreadKiller.Kill(this);
ASSERT(false);
//s_cThreadKiller.Kill(this);
}
// Don't join if not started
// It avoids exception's generation because pthread_join returns an error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment