P4 to Git Change 1551367 by lmoriche@lmoriche_opencl_dev2 on 2018/05/07 18:40:02

SWDEV-145570 - [HIP] - Fix a race condition in the CommandQueue::Thread destruction.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/os/os_posix.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#26 edit
This commit is contained in:
foreman
2018-05-07 18:50:50 -04:00
förälder c06ffcf665
incheckning 7fe8b95168
2 ändrade filer med 21 tillägg och 3 borttagningar
+3 -1
Visa fil
@@ -390,7 +390,9 @@ void* Thread::entry(Thread* thread) {
return thread->main();
}
bool Os::isThreadAlive(const Thread& thread) { return true; }
bool Os::isThreadAlive(const Thread& thread) {
return ::pthread_kill((pthread_t)thread.handle(), 0) == 0;
}
const void* Os::createOsThread(amd::Thread* thread) {
pthread_attr_t threadAttr;