7#include "thread_intf.hpp"
9#include "../utility/utility.hpp"
10#include "../char_maps/module.hpp"
11#include "../macros.hpp"
15#include <unordered_map>
17hi_export_module(hikogui.conurrency.thread);
33 hilet
lock = std::scoped_lock(detail::thread_names_mutex);
43 r[i] = to_bool(rhs & (
DWORD_PTR{1} << i));
53 r |= rhs[i] ? (
DWORD{1} << i) : 0;
74 hilet
mask_ = mask_vec_to_int(mask);
89 hi_assert(index < 64);
Definition of the unfair_mutex.
Rules for working with win32 headers.
constexpr std::wstring to_wstring(std::u32string_view rhs) noexcept
Conversion from UTF-32 to wide-string (UTF-16/32).
Definition to_string.hpp:156
std::vector< bool > process_affinity_mask()
Get the current process CPU affinity mask.
void set_thread_name(std::string_view name) noexcept
Set the name of the current thread.
std::vector< bool > set_thread_affinity_mask(std::vector< bool > const &mask)
Set the current thread CPU affinity mask.
std::size_t current_cpu_id() noexcept
Get the current CPU id.
thread_id current_thread_id() noexcept
Get the current thread id.
DOXYGEN BUG.
Definition algorithm.hpp:16
std::string get_last_error_message()
Get the OS error message from the last error received on this thread.
Definition exception_win32_impl.hpp:31
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377