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

Method sync_storage

modules/engine/runtime/src/ecs/scheduler.cpp:232–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void sugoi::scheduler_t::sync_storage(const sugoi_storage_t* storage)
233{
234 if (!storage->scheduler)
235 return;
236 storage->counter.wait(true);
237 for(auto& pair : dependencyEntries)
238 {
239 if(pair.first->storage == storage)
240 {
241 for(auto& entry : pair.second)
242 {
243 entry.owned.clear();
244 entry.shared.clear();
245 }
246 }
247 }
248}
249
250namespace sugoi
251{

Callers 6

defragmentMethod · 0.80
pack_entitiesMethod · 0.80
mergeMethod · 0.80
sugoiJ_wait_storageFunction · 0.80
serializeMethod · 0.80
deserializeMethod · 0.80

Calls 2

waitMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected