SWDEV-382397 - Move VirtualGPU destruction back to the thread exit

OS can terminate unfinished queue thread from default stream at any
time. Potentially leaving the queue lock in a bad state and causing a
deadlock if runtime destroys VirtualGPU later from the host thread.

Change-Id: I247f102ee84e6b4dba947504933395071945c85d
此提交包含在:
German
2023-02-16 15:48:57 -05:00
提交者 German Andryeyev
父節點 f98dcf9d7f
當前提交 28daf98f1f
共有 2 個檔案被更改,包括 4 行新增 和 7 行删除
+1
查看文件
@@ -66,6 +66,7 @@ bool HostQueue::terminate() {
marker->awaitCompletion();
marker->release();
}
thread_.Release();
thread_.acceptingCommands_ = false;
} else {
if (Os::isThreadAlive(thread_)) {