X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fthreadengines%2Fthreadengine_pthread.cpp;h=fcb4db444b0b63b8e776721d838b29ed839f099c;hb=b9006ce3cba742ca2a22d601ba1a63a47b0402c9;hp=7900e66bc74091fa95127137d65290d00c313a86;hpb=36b9b4b39900d1b2e3b182e1b50370b0c9dcb9ae;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/threadengines/threadengine_pthread.cpp b/src/threadengines/threadengine_pthread.cpp index 7900e66bc..fcb4db444 100644 --- a/src/threadengines/threadengine_pthread.cpp +++ b/src/threadengines/threadengine_pthread.cpp @@ -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