| 353 | } |
| 354 | |
| 355 | AsyncEvent DeviceImpl::launchHostTask(const std::function<void()> &task) |
| 356 | { |
| 357 | // Create a command with event |
| 358 | auto eventImpl = std::make_shared<AsyncEventImpl>(); |
| 359 | CommandPtr cmd = |
| 360 | std::unique_ptr<Command>(new CommandRunHostTask(task, eventImpl)); |
| 361 | |
| 362 | // Put the command into the queue and signal the worker thread |
| 363 | scheduleCommand(std::move(cmd)); |
| 364 | return AsyncEvent(eventImpl); |
| 365 | } |
| 366 | |
| 367 | void *DeviceImpl::getSyclDevicePtr() |
| 368 | { |
no test coverage detected