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
This commit is contained in:
کامیت شده توسط
Jaydeepkumar Patel
والد
2cc9f59774
کامیت
3f3f3d0f1c
@@ -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;
|
||||
|
||||
مرجع در شماره جدید
Block a user