Revert "Wake up commandQueue before returning"
This reverts commit67c6b46cf0. Reason for revert: German advised againt this change. Change-Id: Ia1b1b9db60c965b2d9c006bd7d20012a9d7697e1 [ROCm/clr commit:1b46f2622b]
Tá an tiomantas seo le fáil i:
@@ -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;
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir