xtd 0.2.0
Loading...
Searching...
No Matches
xtd::threading::this_thread Namespace Reference

Definition

The xtd::threading::this_thread namespace contains some current thread properties and sheduling methods.

Public Static Properties

auto handle () noexcept -> xtd::intptr
 Gets the thread handle of the current thread.
auto managed_thread_id () noexcept -> xtd::int32
 Gets the managed thread id of the current thread.
auto name () noexcept -> xtd::string
 Gets the thread name of the current thread.
auto name (const xtd::string &name) -> void
 Sets the thread name of the current thread.
auto priority () noexcept -> xtd::threading::thread_priority
 Gets the thread priority of the current thread.
auto priority (xtd::threading::thread_priority priority) -> void
 Sets the thread priority of the current thread.
auto thread_id () noexcept -> xtd::intptr
 Gets the thread id of the current thread.

Public Static Methods

auto get_id () noexcept -> xtd::intptr
 Returns the thread id of the current thread.
auto sleep_for (const xtd::time_span &sleep_duration) -> void
 Stops the execution of the current thread for a specified time duration.
auto sleep_until (const xtd::date_time &sleep_time) -> void
 Stops the execution of the current thread until a specified time point.
auto yield () noexcept -> bool
 Suggests that the implementation reschedule execution of threads.