| 116 | } |
| 117 | |
| 118 | void 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 | |
| 129 | void MTGS::ShutdownThread() |
| 130 | { |