1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 21:36:38 +02:00
Files
anope/src/threadengine.cpp
T

38 lines
505 B
C++

#include "services.h"
ThreadEngine threadEngine;
/** Threads constructor
*/
Thread::Thread() : Exit(false)
{
}
/** Threads destructor
*/
Thread::~Thread()
{
}
/** Sets the exit state as true informing the thread we want it to shut down
*/
void Thread::SetExitState()
{
Exit = true;
}
/** Returns the exit state of the thread
* @return true if we want to exit
*/
bool Thread::GetExitState() const
{
return Exit;
}
/** Called to run the thread, should be overloaded
*/
void Thread::Run()
{
}