MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ShutdownCPUProviders

Method ShutdownCPUProviders

pcsx2/VMManager.cpp:2679–2699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2677}
2678
2679void VMManager::ShutdownCPUProviders()
2680{
2681 if (newVifDynaRec)
2682 {
2683 dVifRelease(1);
2684 dVifRelease(0);
2685 }
2686
2687#ifdef _M_X86 // TODO(Stenzek): Remove me once EE/VU/IOP recs are added.
2688 CpuMicroVU1.Shutdown();
2689 CpuMicroVU0.Shutdown();
2690
2691 psxRec.Shutdown();
2692 recCpu.Shutdown();
2693#else
2694 // See the comment in the InitializeCPUProviders for an explaination why we
2695 // still need to manage the MTVU thread.
2696 if (vu1Thread.IsOpen())
2697 vu1Thread.WaitVU();
2698#endif
2699}
2700
2701void VMManager::UpdateCPUImplementations()
2702{

Callers

nothing calls this directly

Calls 4

WaitVUMethod · 0.80
dVifReleaseFunction · 0.50
ShutdownMethod · 0.45
IsOpenMethod · 0.45

Tested by

no test coverage detected