![]() |
Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
|
Diverse functionality to extend the thread capabilities of C++11 and up.

Functions | |
| std::string | elementa::base::threadid_to_string (const std::thread::id &thrid) |
| Convert a thread id to text. More... | |
|
inline |
#include <elementa/base/threads.h>
Convert a thread id to text.
Return a thread id as a string. This is needed because thread::id is not a numeric type, and thus it cannot be converted to string directly. The current thread id is obtained through std::this_thread::get_id().