MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / dispatch

Method dispatch

modules/engine/runtime/src/io/ram/ram_readers.cpp:98–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void VFSRAMReader::dispatch(SkrAsyncServicePriority priority) SKR_NOEXCEPT
99{
100 IORequestId rq;
101 if (fetched_requests[priority].try_dequeue(rq))
102 {
103 auto launcher = VFSReaderFutureLauncher(job_queue);
104 loaded_futures[priority].add(
105 launcher.async([this, rq, priority](){
106 SkrZoneScopedN("VFSReadTask");
107 dispatchFunction(priority, rq);
108 return true;
109 })
110 );
111 }
112}
113
114bool VFSRAMReader::poll_processed_request(SkrAsyncServicePriority priority, IORequestId& request) SKR_NOEXCEPT
115{

Callers

nothing calls this directly

Calls 3

try_dequeueMethod · 0.45
addMethod · 0.45
asyncMethod · 0.45

Tested by

no test coverage detected