From f16b805e0dd9fe34728dc046cb7b730218285c18 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 2 Jun 2016 14:56:43 +0100 Subject: [PATCH] Moved status check to quieten coverity warning --- src/OpenThreads/pthreads/PThread.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/OpenThreads/pthreads/PThread.cpp b/src/OpenThreads/pthreads/PThread.cpp index ab62064b8..527ed13a2 100644 --- a/src/OpenThreads/pthreads/PThread.cpp +++ b/src/OpenThreads/pthreads/PThread.cpp @@ -671,15 +671,16 @@ int Thread::start() { status = pthread_attr_setinheritsched( &thread_attr, PTHREAD_EXPLICIT_SCHED ); - pthread_attr_setscope(&thread_attr, PTHREAD_SCOPE_SYSTEM); - -#endif // ] ALLOW_PRIORITY_SCHEDULING - if(status != 0) { return status; } + pthread_attr_setscope(&thread_attr, PTHREAD_SCOPE_SYSTEM); + +#endif // ] ALLOW_PRIORITY_SCHEDULING + + pd->threadStartedBlock.reset(); status = pthread_create(&(pd->tid), &thread_attr,