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

Method is_main_thread

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

Source from the content-addressed store, hash-verified

34}
35
36bool sugoi::scheduler_t::is_main_thread(const sugoi_storage_t* storage)
37{
38 SKR_ASSERT(storage->scheduler == this);
39 return storage->currentFiber == skr::task::current_fiber();
40}
41
42void sugoi::scheduler_t::set_main_thread(const sugoi_storage_t* storage)
43{

Callers 15

allocateMethod · 0.80
destroyMethod · 0.80
instantiateMethod · 0.80
defragmentMethod · 0.80
pack_entitiesMethod · 0.80
castMethod · 0.80
mergeMethod · 0.80
sugoiS_queryFunction · 0.80
queryMethod · 0.80
destroyMethod · 0.80
query_groupsMethod · 0.80
serialize_prefabMethod · 0.80

Calls 1

current_fiberFunction · 0.50

Tested by

no test coverage detected