Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
Loading...
Searching...
No Matches
Thread extensions

Description


Diverse functionality to extend the thread capabilities of C++11 and up.

Author
Juan-Antonio Fernandez-Madrigal. http://jafma.net
Date
2018-2019
Collaboration diagram for Thread extensions:

Functions

std::string elementa::base::threadid_to_string (const std::thread::id &thrid)
 Convert a thread id to text. More...
 

Function Documentation

◆ threadid_to_string()

std::string elementa::base::threadid_to_string ( const std::thread::id &  thrid)
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().

Definition at line 50 of file threads.h.