MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / startLoading

Method startLoading

Source/Engine/Content/Asset.cpp:584–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584void Asset::startLoading()
585{
586 PROFILE_MEM(ContentAssets);
587 ASSERT(!IsLoaded());
588 auto task = (Task*)Platform::AtomicRead(&_loadingTask);
589 ASSERT(task == nullptr || task->IsFinished() || task->IsCanceled());
590 auto loadingTask = createLoadingTask();
591 ASSERT(loadingTask != nullptr);
592 Platform::AtomicStore(&_loadingTask, (intptr)loadingTask);
593 loadingTask->Start();
594}
595
596void Asset::releaseStorage()
597{

Callers 1

LoadAsyncMethod · 0.80

Calls 4

IsLoadedFunction · 0.70
AtomicReadFunction · 0.50
AtomicStoreFunction · 0.50
StartMethod · 0.45

Tested by

no test coverage detected