SWDEV-372757 - Don't destroy null queue in MT

This reverts commit 3afbe3a155.

Reason for revert: patch does not fix all stream hangs. So another patch was merged which fixes all issues.

Change-Id: I332d1ea29c23747b46b7667fe3e34e0ceefd2b23


[ROCm/clr commit: 1f4176062b]
This commit is contained in:
Ajay GunaShekar
2023-01-15 10:01:14 -05:00
parent e72db4a957
commit 01fe2ea09e
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -48,12 +48,8 @@ Stream::~Stream() {
amd::ScopedLock lock(streamSetLock);
streamSet.erase(this);
// Skip queue destruction for null stream in MT. Queue worker thread can be destroyed on
// the app exit, during the stream destruction, causing a race condition.
if (!null_ || AMD_DIRECT_DISPATCH) {
queue_->release();
queue_ = nullptr;
}
queue_->release();
queue_ = nullptr;
}
}