]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengines/threadengine_pthread.cpp
Remove ProtocolInterface::SendMode()
[user/henk/code/inspircd.git] / src / threadengines / threadengine_pthread.cpp
index 7900e66bc74091fa95127137d65290d00c313a86..fcb4db444b0b63b8e776721d838b29ed839f099c 100644 (file)
@@ -43,10 +43,10 @@ void ThreadEngine::Start(Thread* thread)
                throw CoreException("Unable to create new thread: " + std::string(strerror(errno)));
 }
 
-void ThreadData::FreeThread(Thread* thread)
+void ThreadEngine::Stop(Thread* thread)
 {
        thread->SetExitFlag();
-       pthread_join(pthread_id, NULL);
+       pthread_join(thread->state.pthread_id, NULL);
 }
 
 #ifdef HAS_EVENTFD