@@ -67,7 +67,7 @@ void Scheduler::waitForRecordToFinish(MemObjRecord *Record,
6767 // Capture the dependencies
6868 DepCommands.insert (Cmd);
6969#endif
70- GraphProcessor::waitForEvent (Cmd->getEvent (), GraphReadLock, ToCleanUp);
70+ GraphProcessor::waitForEvent (* Cmd->getEvent (), GraphReadLock, ToCleanUp);
7171 }
7272 for (Command *Cmd : Record->MWriteLeaves ) {
7373 if (Cmd->MEnqueueStatus == EnqueueResultT::SyclEnqueueFailed)
@@ -82,7 +82,7 @@ void Scheduler::waitForRecordToFinish(MemObjRecord *Record,
8282#ifdef XPTI_ENABLE_INSTRUMENTATION
8383 DepCommands.insert (Cmd);
8484#endif
85- GraphProcessor::waitForEvent (Cmd->getEvent (), GraphReadLock, ToCleanUp);
85+ GraphProcessor::waitForEvent (* Cmd->getEvent (), GraphReadLock, ToCleanUp);
8686 }
8787 for (AllocaCommandBase *AllocaCmd : Record->MAllocaCommands ) {
8888 Command *ReleaseCmd = AllocaCmd->getReleaseCmd ();
@@ -97,7 +97,7 @@ void Scheduler::waitForRecordToFinish(MemObjRecord *Record,
9797 // reported as edges
9898 ReleaseCmd->resolveReleaseDependencies (DepCommands);
9999#endif
100- GraphProcessor::waitForEvent (ReleaseCmd->getEvent (), GraphReadLock,
100+ GraphProcessor::waitForEvent (* ReleaseCmd->getEvent (), GraphReadLock,
101101 ToCleanUp);
102102 }
103103}
@@ -278,12 +278,12 @@ bool Scheduler::isInstanceAlive() {
278278 return GlobalHandler::instance ().isSchedulerAlive ();
279279}
280280
281- void Scheduler::waitForEvent (const EventImplPtr &Event, bool *Success) {
281+ void Scheduler::waitForEvent (event_impl &Event, bool *Success) {
282282 ReadLockT Lock = acquireReadLock ();
283283 // It's fine to leave the lock unlocked upon return from waitForEvent as
284284 // there's no more actions to do here with graph
285285 std::vector<Command *> ToCleanUp;
286- GraphProcessor::waitForEvent (std::move ( Event) , Lock, ToCleanUp,
286+ GraphProcessor::waitForEvent (Event, Lock, ToCleanUp,
287287 /* LockTheLock=*/ false , Success);
288288 cleanupCommands (ToCleanUp);
289289}
0 commit comments