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

Method on_unload

modules/engine/runtime/src/misc/build.module.cpp:47–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void SkrRuntimeModule::on_unload()
48{
49 sugoi_shutdown();
50
51 skr_runtime_free_dstorage_instance();
52
53 SKR_LOG_TRACE(u8"SkrRuntime module unloaded!");
54 skr_log_finalize_async_worker();
55 skr_finalize_crash_handler();
56
57#ifdef SKR_PROFILE_ENABLE
58 if (tracy::GetProfiler().IsConnected())
59 {
60 std::this_thread::sleep_for( std::chrono::milliseconds( 500 ) );
61 tracy::GetProfiler().RequestShutdown();
62 while( !tracy::GetProfiler().HasShutdownFinished() ) { std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) ); };
63 }
64 tracyLibrary.unload();
65#endif
66}
67
68SkrRuntimeModule* SkrRuntimeModule::Get()
69{

Callers

nothing calls this directly

Calls 7

sugoi_shutdownFunction · 0.85
IsConnectedMethod · 0.80
RequestShutdownMethod · 0.80
HasShutdownFinishedMethod · 0.80
unloadMethod · 0.45

Tested by

no test coverage detected