Wake up commandQueue before returning

Change-Id: I87eb5a22c81a9cb807474a960b5987d5fb6c2b86


[ROCm/clr commit: e2def55164]
이 커밋은 다음에 포함됨:
Saleel Kudchadker가 2020-04-03 10:23:36 -07:00를 커밋했습니다
1 부모 22a021d12e
커밋 67c6b46cf0
1 파일이 변경됨
+10 -2
+10 -2
파일 보기
@@ -95,12 +95,20 @@ hipError_t Event::elapsedTime(Event& eStop, float& ms) {
}
hipError_t Event::streamWait(amd::HostQueue* hostQueue, uint flags) {
if ((event_ == nullptr) || (event_->command().queue() == hostQueue)) {
// Effective no-op if event is NULL
if (event_ == nullptr) {
return hipSuccess;
}
amd::ScopedLock lock(lock_);
bool retain = false;
if (event_->command().queue() == hostQueue) {
// Wake up commandQueue thread
if (!event_->notifyCmdQueue()) {
return hipErrorLaunchOutOfResources;
}
return hipSuccess;
}
if (!event_->notifyCmdQueue()) {
return hipErrorLaunchOutOfResources;