summaryrefslogtreecommitdiff
path: root/src/threadengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadengine.cpp')
-rw-r--r--src/threadengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threadengine.cpp b/src/threadengine.cpp
index 1f4d23b68..421f6d94f 100644
--- a/src/threadengine.cpp
+++ b/src/threadengine.cpp
@@ -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()