mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 07:07:29 +01:00
*Massive cleanup redux.
--HG-- branch : trunk
This commit is contained in:
@@ -37,12 +37,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "Thread.h"
|
||||
|
||||
|
||||
#ifdef SOCKETS_NAMESPACE
|
||||
namespace SOCKETS_NAMESPACE {
|
||||
#endif
|
||||
|
||||
|
||||
Thread::Thread(bool release)
|
||||
:m_thread(0)
|
||||
,m_running(true)
|
||||
@@ -68,7 +66,6 @@ Thread::Thread(bool release)
|
||||
m_release = release;
|
||||
}
|
||||
|
||||
|
||||
Thread::~Thread()
|
||||
{
|
||||
m_b_destructor = true;
|
||||
@@ -88,7 +85,6 @@ Thread::~Thread()
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
threadfunc_t STDPREFIX Thread::StartThread(threadparam_t zz)
|
||||
{
|
||||
Thread *p = (Thread *)zz;
|
||||
@@ -116,52 +112,43 @@ threadfunc_t STDPREFIX Thread::StartThread(threadparam_t zz)
|
||||
return (threadfunc_t)NULL;
|
||||
}
|
||||
|
||||
|
||||
bool Thread::IsRunning()
|
||||
{
|
||||
return m_running;
|
||||
}
|
||||
|
||||
|
||||
void Thread::SetRunning(bool x)
|
||||
{
|
||||
m_running = x;
|
||||
}
|
||||
|
||||
|
||||
bool Thread::IsReleased()
|
||||
{
|
||||
return m_release;
|
||||
}
|
||||
|
||||
|
||||
void Thread::SetRelease(bool x)
|
||||
{
|
||||
m_release = x;
|
||||
}
|
||||
|
||||
|
||||
bool Thread::DeleteOnExit()
|
||||
{
|
||||
return m_b_delete_on_exit;
|
||||
}
|
||||
|
||||
|
||||
void Thread::SetDeleteOnExit(bool x)
|
||||
{
|
||||
m_b_delete_on_exit = x;
|
||||
}
|
||||
|
||||
|
||||
bool Thread::IsDestructor()
|
||||
{
|
||||
return m_b_destructor;
|
||||
}
|
||||
|
||||
|
||||
#ifdef SOCKETS_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user