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

Method enqueueBatch

modules/engine/runtime/src/io/vram/vram_service.cpp:180–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void VRAMService::Runner::enqueueBatch(const IOBatchId& batch) SKR_NOEXCEPT
181{
182 const auto priority = batch->get_priority();
183 for (auto&& request : batch->get_requests())
184 {
185 if (auto pStatus = io_component<IOStatusComponent>(request.get()))
186 {
187 auto status = pStatus->getStatus();
188 SKR_ASSERT(status == SKR_IO_STAGE_NONE);
189 pStatus->setStatus(SKR_IO_STAGE_ENQUEUED);
190 }
191 }
192 batch_buffer->fetch(priority, batch);
193 skr_atomic64_add_relaxed(&processing_request_counts[priority], 1);
194}
195
196void VRAMService::Runner::set_resolvers() SKR_NOEXCEPT
197{

Callers 1

requestMethod · 0.45

Calls 5

skr_atomic64_add_relaxedFunction · 0.85
getStatusMethod · 0.80
getMethod · 0.45
setStatusMethod · 0.45
fetchMethod · 0.45

Tested by

no test coverage detected