summaryrefslogtreecommitdiff
path: root/src/threadengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadengine.cpp')
-rw-r--r--src/threadengine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/threadengine.cpp b/src/threadengine.cpp
index 12e14eb19..421f6d94f 100644
--- a/src/threadengine.cpp
+++ b/src/threadengine.cpp
@@ -1,6 +1,6 @@
/*
*
- * (C) 2003-2012 Anope Team
+ * (C) 2003-2013 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -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()