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

Method StartThread

pcsx2/MTGS.cpp:118–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void MTGS::StartThread()
119{
120 if (s_thread.Joinable())
121 return;
122
123 pxAssertRel(!s_open_flag.load(), "GS thread should not be opened when starting");
124 s_sem_event.Reset();
125 s_shutdown_flag.store(false, std::memory_order_release);
126 s_thread.Start(&MTGS::ThreadEntryPoint);
127}
128
129void MTGS::ShutdownThread()
130{

Callers

nothing calls this directly

Calls 4

JoinableMethod · 0.80
loadMethod · 0.45
ResetMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected