SWDEV-498816 - Detached thread might exit and pthread_t is invalid access to check if it is valid or not.

Hence, It is not required to check it if thread is already finished processing packets.

Change-Id: If1b43a169a06203f3e1ab0529cf592879496d7c4


[ROCm/clr commit: 3f3f3d0f1c]
此提交包含在:
Jaydeep Patel authored and Jaydeepkumar Patel committed 2024-11-24 01:38:47 -05:00
1 父節點 a22553fb33
當前提交 177ef6b6f8
1 file changed
+1 -1
+1 -1
查看文件
@@ -334,7 +334,7 @@ void HostcallListener::consumePackets() {
}
void HostcallListener::terminate() {
if (!amd::Os::isThreadAlive(thread_)) {
if (thread_.state() < Thread::FINISHED && !amd::Os::isThreadAlive(thread_)) {
return;
}
kHostThreadActive.state = Init::State::kExit;