@brief Check if the current thread is the main thread
| 44 | |
| 45 | /// @brief Check if the current thread is the main thread |
| 46 | inline bool is_main_thread() FL_NOEXCEPT { |
| 47 | return std::this_thread::get_id() == main_thread_id(); // okay std namespace |
| 48 | } |
| 49 | |
| 50 | /// @brief Native sleep for 1ms |
| 51 | inline void native_sleep_1ms() FL_NOEXCEPT { |