| 19 | } |
| 20 | |
| 21 | fjs::Thread* fjs::Manager::GetCurrentThread() const |
| 22 | { |
| 23 | #ifdef _WIN32 |
| 24 | uint32_t idx = GetCurrentThreadId(); |
| 25 | for (uint8_t i = 0; i < m_numThreads; i++) |
| 26 | { |
| 27 | if (m_threads[i].GetID() == idx) |
| 28 | return &m_threads[i]; |
| 29 | } |
| 30 | #endif |
| 31 | |
| 32 | return nullptr; |
| 33 | } |
| 34 | |
| 35 | fjs::TLS* fjs::Manager::GetCurrentTLS() const |
| 36 | { |