mirror of
https://github.com/anope/anope.git
synced 2026-06-25 15:46:37 +02:00
Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums
This commit is contained in:
@@ -75,7 +75,7 @@ void Thread::Start()
|
||||
{
|
||||
if (pthread_create(&this->handle, get_engine_attr(), entry_point, this))
|
||||
{
|
||||
this->SetFlag(SF_DEAD);
|
||||
this->flags[SF_DEAD] = true;
|
||||
throw CoreException("Unable to create thread: " + Anope::LastError());
|
||||
}
|
||||
}
|
||||
@@ -88,7 +88,7 @@ bool Thread::GetExitState() const
|
||||
void Thread::OnNotify()
|
||||
{
|
||||
this->Join();
|
||||
this->SetFlag(SF_DEAD);
|
||||
this->flags[SF_DEAD] = true;
|
||||
}
|
||||
|
||||
Mutex::Mutex()
|
||||
|
||||
Reference in New Issue
Block a user