From 7bb96595ee11acda44bdeda400e356d4044e072e Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 24 Jun 2014 12:53:10 +0200 Subject: Move and rename ThreadData::FreeThread() to ThreadEngine::Stop() and document what it does --- src/threadengines/threadengine_pthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/threadengines/threadengine_pthread.cpp') 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 -- cgit v1.3.1-10-gc9f91