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

Method enqueueBatch

modules/engine/runtime/src/io/ram/ram_service.cpp:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void RAMService::Runner::enqueueBatch(const IOBatchId& batch) SKR_NOEXCEPT
159{
160 const auto priority = batch->get_priority();
161 for (auto&& request : batch->get_requests())
162 {
163 if (auto pStatus = io_component<IOStatusComponent>(request.get()))
164 {
165 auto status = pStatus->getStatus();
166 SKR_ASSERT(status == SKR_IO_STAGE_NONE);
167 pStatus->setStatus(SKR_IO_STAGE_ENQUEUED);
168 }
169 }
170 batch_buffer->fetch(priority, batch);
171 skr_atomic64_add_relaxed(&processing_request_counts[priority], 1);
172}
173
174void RAMService::Runner::set_resolvers() SKR_NOEXCEPT
175{

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