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

Method ShutdownThread

pcsx2/MTGS.cpp:129–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void MTGS::ShutdownThread()
130{
131 if (!s_thread.Joinable())
132 return;
133
134 // just go straight to shutdown, don't wait-for-open again
135 s_shutdown_flag.store(true, std::memory_order_release);
136 if (IsOpen())
137 WaitForClose();
138
139 // make sure the thread actually exits
140 s_sem_event.NotifyOfWork();
141 s_thread.Join();
142}
143
144void MTGS::ThreadEntryPoint()
145{

Callers

nothing calls this directly

Calls 3

JoinableMethod · 0.80
NotifyOfWorkMethod · 0.80
JoinMethod · 0.45

Tested by

no test coverage detected