diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-20 18:42:58 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-20 18:42:58 -0400 |
commit | 381c9c8870fad4c544f29deec22ba4be3549a731 (patch) | |
tree | f5f26e2dd380910b0ddd26e3d885d6bf56d40181 /src/threadengine_pthread.cpp | |
parent | 2528dc80bd1b3e6b2c09db23eb51659e30128110 (diff) |
The first of a few "CBX OCDing over code style" commits, focusing on include/* and src/* but not src/core/* or src/modules/*.
Diffstat (limited to 'src/threadengine_pthread.cpp')
-rw-r--r-- | src/threadengine_pthread.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/threadengine_pthread.cpp b/src/threadengine_pthread.cpp index 9d9bf160d..a85af583e 100644 --- a/src/threadengine_pthread.cpp +++ b/src/threadengine_pthread.cpp @@ -11,9 +11,7 @@ static void *entry_point(void *parameter) Thread *thread = static_cast<Thread *>(parameter); thread->Run(); if (!thread->GetExitState()) - { thread->Join(); - } delete thread; pthread_exit(0); } @@ -23,9 +21,7 @@ static void *entry_point(void *parameter) ThreadEngine::ThreadEngine() { if (pthread_attr_init(&threadengine_attr)) - { throw CoreException("ThreadEngine: Error calling pthread_attr_init"); - } } /** Threadengines destructor @@ -110,4 +106,3 @@ void Condition::Wait() { pthread_cond_wait(&cond, &mutex); } - |