| 44 | static uint32_t sThreadingInitCount = 0; |
| 45 | |
| 46 | void Threading::start(uint32_t threadCount) |
| 47 | { |
| 48 | std::lock_guard<std::mutex> lock(sThreadingInitMutex); |
| 49 | if (sThreadingInitCount++ == 0) |
| 50 | { |
| 51 | gData.threads.resize(threadCount); |
| 52 | gData.initialized = true; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | void Threading::shutdown() |
| 57 | { |