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

Method add_storage

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

Source from the content-addressed store, hash-verified

47}
48
49void sugoi::scheduler_t::add_storage(sugoi_storage_t* storage)
50{
51 SMutexLock lock(storageMutex.mMutex);
52 storage->scheduler = this;
53 storage->currentFiber = skr::task::current_fiber();
54 storages.push_back(storage);
55}
56void sugoi::scheduler_t::remove_storage(const sugoi_storage_t* storage)
57{
58 sync_storage(storage);

Callers 1

sugoiJ_bind_storageFunction · 0.80

Calls 2

current_fiberFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected