MCPcopy Create free account
hub / github.com/RenderKit/ospray / launchHostTask

Method launchHostTask

modules/cpu/common/DeviceRTImpl_ispc.cpp:355–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355AsyncEvent 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
367void *DeviceImpl::getSyclDevicePtr()
368{

Callers 2

renderFrameMethod · 0.45
processMethod · 0.45

Calls 1

AsyncEventClass · 0.85

Tested by

no test coverage detected