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


[ROCm/clr commit: 7fe8b95168]
Tento commit je obsažen v:
foreman
2018-05-07 18:50:50 -04:00
rodič 87e83ca8a5
revize c6ba32fc41
2 změnil soubory, kde provedl 21 přidání a 3 odebrání
+3 -1
Zobrazit soubor
@@ -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;