mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Refactor deducing blocked state and task level.
- Do this with one helper function. Change-Id: I81dd3107a98db7e45a691ba6d5e708d98eabe3d2
This commit is contained in:
@ -149,11 +149,10 @@ class Event : public BaseObject<_cl_event>, public IDNode<Event> {
|
||||
static cl_int waitForEvents(cl_uint numEvents,
|
||||
const cl_event *eventList);
|
||||
|
||||
std::unique_ptr<Command> setCommand(std::unique_ptr<Command> newCmd) {
|
||||
void setCommand(std::unique_ptr<Command> newCmd) {
|
||||
UNRECOVERABLE_IF(cmdToSubmit.load());
|
||||
cmdToSubmit.exchange(newCmd.release());
|
||||
eventWithoutCommand = false;
|
||||
return nullptr;
|
||||
}
|
||||
Command *peekCommand() {
|
||||
return cmdToSubmit;
|
||||
|
Reference in New Issue
Block a user