xtd 0.2.0
Loading...
Searching...
No Matches
this_thread.hpp File Reference
#include "thread.hpp"

Definition

Contains xtd::threading::this_thread namespace.

Go to the source code of this file.

Namespaces

namespace  xtd
 The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
namespace  xtd::threading
 The xtd::threading namespace provides classes and interfaces that enable multithreaded programming. In addition to classes for synchronizing thread activities and access to data ( xtd::threading::mutex, xtd::threading::monitor, xtd::threading::interlocked, xtd::threading::auto_reset_event, and so on), this namespace includes a xtd::threading::thread_pool class that allows you to use a pool of system-supplied threads, and a xtd::threading::timer class that executes callback methods on thread pool threads.
namespace  xtd::threading::this_thread
 The xtd::threading::this_thread namespace contains some current thread properties and sheduling methods.

Public Static Properties

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

Public Static Methods

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