| 45 | } |
| 46 | |
| 47 | void 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 | |
| 68 | SkrRuntimeModule* SkrRuntimeModule::Get() |
| 69 | { |
nothing calls this directly
no test coverage detected