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:
@@ -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;
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele