MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / VR_ShutdownInternal

Function VR_ShutdownInternal

src/openvr_api_public.cpp:88–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void VR_ShutdownInternal()
89{
90 std::lock_guard<std::recursive_mutex> lock( g_mutexSystem );
91
92#if !defined( VR_API_PUBLIC )
93 CleanupInternalInterfaces();
94#endif
95
96 if ( g_pHmdSystem )
97 {
98 g_pHmdSystem->Cleanup();
99 g_pHmdSystem = NULL;
100 }
101
102 if ( g_pVRModule )
103 {
104 SharedLib_Unload( g_pVRModule );
105 g_pVRModule = NULL;
106 }
107
108 ++g_nVRToken;
109}
110
111EVRInitError VR_LoadHmdSystemInternal()
112{

Callers 2

VR_InitFunction · 0.85
VR_ShutdownFunction · 0.85

Calls 2

SharedLib_UnloadFunction · 0.85
CleanupMethod · 0.45

Tested by

no test coverage detected