Moved status check to quieten coverity warning

This commit is contained in:
Robert Osfield
2016-06-02 14:56:43 +01:00
parent 66ee7daac3
commit f16b805e0d

View File

@@ -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,