xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::threads Namespace Reference

Threading functionality. More...

Namespaces

namespace  deprecated
 

Functions

template<typename Char , typename CharTraits = std::char_traits<Char>>
auto toBasicString (std::thread::id id=std::this_thread::get_id()) -> std::basic_string< Char, CharTraits >
 Converts a thread ID to a string.
 
template<typename Char , typename CharTraits = std::char_traits<Char>>
auto toBasicString (const std::thread &thread) -> std::basic_string< Char, CharTraits >
 Converts the thread ID of a thread to a string.
 
auto toString (std::thread::id id=std::this_thread::get_id()) -> std::string
 Converts a thread ID to a string of type char
 
auto toString (const std::thread &thread) -> std::string
 Converts the thread ID of a thread to a string of type char
 
auto toWString (std::thread::id id=std::this_thread::get_id()) -> std::wstring
 Converts a thread ID to a string of type wchar_t
 
auto toWString (const std::thread &thread) -> std::wstring
 Converts the thread ID of a thread to a string of type wchar_t
 
auto toU8String (std::thread::id id=std::this_thread::get_id()) -> std::u8string
 Converts a thread ID to a string of type char8_t
 
auto toU8String (const std::thread &thread) -> std::u8string
 Converts the thread ID of a thread to a string of type char8_t
 
auto toU16String (std::thread::id id=std::this_thread::get_id()) -> std::u16string
 Converts a thread ID to a string of type char16_t
 
auto toU16String (const std::thread &thread) -> std::u16string
 Converts the thread ID of a thread to a string of type char16_t
 
auto toU32String (std::thread::id id=std::this_thread::get_id()) -> std::u32string
 Converts a thread ID to a string of type char32_t
 
auto toU32String (const std::thread &thread) -> std::u32string
 Converts the thread ID of a thread to a string of type char32_t
 

Detailed Description

Threading functionality.

This namespace contains functionality related to threads.

Function Documentation

◆ toBasicString() [1/2]

template<typename Char , typename CharTraits = std::char_traits<Char>>
auto xentara::utils::threads::toBasicString ( const std::thread thread) -> std::basic_string<Char, CharTraits>

Converts the thread ID of a thread to a string.

Parameters
threadThe thread
Returns
A string containing the thread’s ID

◆ toBasicString() [2/2]

template<typename Char , typename CharTraits = std::char_traits<Char>>
auto xentara::utils::threads::toBasicString ( std::thread::id  id = std::this_thread::get_id()) -> std::basic_string<Char, CharTraits>

Converts a thread ID to a string.

Parameters
idThe thread ID
Returns
A string containing the thread ID

◆ toString() [1/2]

auto xentara::utils::threads::toString ( const std::thread thread) -> std::string

Converts the thread ID of a thread to a string of type char

Parameters
threadThe thread
Returns
A string containing the thread’s ID

◆ toString() [2/2]

auto xentara::utils::threads::toString ( std::thread::id  id = std::this_thread::get_id()) -> std::string

Converts a thread ID to a string of type char

Parameters
idThe thread ID
Returns
A string containing the thread ID

◆ toU16String() [1/2]

auto xentara::utils::threads::toU16String ( const std::thread thread) -> std::u16string

Converts the thread ID of a thread to a string of type char16_t

Parameters
threadThe thread
Returns
A string containing the thread’s ID

◆ toU16String() [2/2]

auto xentara::utils::threads::toU16String ( std::thread::id  id = std::this_thread::get_id()) -> std::u16string

Converts a thread ID to a string of type char16_t

Parameters
idThe thread ID
Returns
A string containing the thread ID

◆ toU32String() [1/2]

auto xentara::utils::threads::toU32String ( const std::thread thread) -> std::u32string

Converts the thread ID of a thread to a string of type char32_t

Parameters
threadThe thread
Returns
A string containing the thread’s ID

◆ toU32String() [2/2]

auto xentara::utils::threads::toU32String ( std::thread::id  id = std::this_thread::get_id()) -> std::u32string

Converts a thread ID to a string of type char32_t

Parameters
idThe thread ID
Returns
A string containing the thread ID

◆ toU8String() [1/2]

auto xentara::utils::threads::toU8String ( const std::thread thread) -> std::u8string

Converts the thread ID of a thread to a string of type char8_t

Parameters
threadThe thread
Returns
A string containing the thread’s ID

◆ toU8String() [2/2]

auto xentara::utils::threads::toU8String ( std::thread::id  id = std::this_thread::get_id()) -> std::u8string

Converts a thread ID to a string of type char8_t

Parameters
idThe thread ID
Returns
A string containing the thread ID

◆ toWString() [1/2]

auto xentara::utils::threads::toWString ( const std::thread thread) -> std::wstring

Converts the thread ID of a thread to a string of type wchar_t

Parameters
threadThe thread
Returns
A string containing the thread’s ID

◆ toWString() [2/2]

auto xentara::utils::threads::toWString ( std::thread::id  id = std::this_thread::get_id()) -> std::wstring

Converts a thread ID to a string of type wchar_t

Parameters
idThe thread ID
Returns
A string containing the thread ID