Commit 4a550c52 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

pthread_exit called explicitly now

parent 3e49e15d
......@@ -62,6 +62,8 @@ void *thread_function_wrapper2(void *dummyPtr)
(*pfh)(taskNumber + pfs->start, pfs->threadNum);
}
int retval = 0;
pthread_exit(static_cast<void*>(&retval));
return 0;
}
......
......@@ -125,6 +125,8 @@ void *thread_function_wrapper(void *dummyPtr)
pfh->thread_function_(pfs->threadNum,pfs->blockSize,pfs->total,pfs->mutex);
int retval = 0;
pthread_exit(static_cast<void*>(&retval));
return 0;
}
......
......@@ -144,6 +144,8 @@ void *thread_function_wrapper(void *dummyPtr)
pfh->doTask(taskNumber, pfs->threadNum);
}
int retval = 0;
pthread_exit(static_cast<void*>(&retval));
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment