Merge "Revert "Wake up commandQueue before returning"" into amd-master-next

[ROCm/clr commit: f3e31ad00e]
这个提交包含在:
Saleel Kudchadker 编写, Gerrit Code Review 于 2020-04-06 18:52:29 -04:00 提交
2 父节点 3dbdfd27b7 fefdc97c2a
当前提交 83e6fd2996
1 个文件已更改
+2 -10
+2 -10
查看文件
@@ -95,20 +95,12 @@ hipError_t Event::elapsedTime(Event& eStop, float& ms) {
}
hipError_t Event::streamWait(amd::HostQueue* hostQueue, uint flags) {
// Effective no-op if event is NULL
if (event_ == nullptr) {
if ((event_ == nullptr) || (event_->command().queue() == hostQueue)) {
return hipSuccess;
}
amd::ScopedLock lock(lock_);
if (event_->command().queue() == hostQueue) {
// Wake up commandQueue thread
if (!event_->notifyCmdQueue()) {
return hipErrorLaunchOutOfResources;
}
return hipSuccess;
}
bool retain = false;
if (!event_->notifyCmdQueue()) {
return hipErrorLaunchOutOfResources;