MCPcopy Create free account
hub / github.com/FastLED/FastLED / is_main_thread

Function is_main_thread

src/platforms/stub/thread_stub_stl.h:46–48  ·  view source on GitHub ↗

@brief Check if the current thread is the main thread

Source from the content-addressed store, hash-verified

44
45/// @brief Check if the current thread is the main thread
46inline 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
51inline void native_sleep_1ms() FL_NOEXCEPT {

Callers 1

thread_stub_stl.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected