| 36 | } |
| 37 | |
| 38 | static bool isThisTheMainThread(const d_ThreadHandle mainThreadHandle) noexcept |
| 39 | { |
| 40 | #ifdef DISTRHO_OS_WINDOWS |
| 41 | return GetCurrentThread() == mainThreadHandle; // IsGUIThread ? |
| 42 | #else |
| 43 | return pthread_equal(getCurrentThreadHandle(), mainThreadHandle) != 0; |
| 44 | #endif |
| 45 | } |
| 46 | |
| 47 | // -------------------------------------------------------------------------------------------------------------------- |
| 48 |
no test coverage detected