#include "parameterized_thread_start.hpp"
#include "wait_handle.hpp"
#include "thread_priority.hpp"
#include "thread_start.hpp"
#include "thread_state.hpp"
#include "../as.hpp"
#include "../core_export.hpp"
#include "../date_time.hpp"
#include "../intptr.hpp"
#include "../object.hpp"
#include "../time_span.hpp"
#include "../types.hpp"
Contains xtd::threading::thread class.
Go to the source code of this file.
Classes | |
class | xtd::threading::thread |
Creates and controls a thread, sets its priority, and gets its status. More... | |
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 | |
xtd::intptr | xtd::threading::this_thread::handle () noexcept |
Gets the thread handle of the current thread. | |
xtd::int32 | xtd::threading::this_thread::managed_thread_id () noexcept |
Gets the managed thread id of the current thread. | |
xtd::string | xtd::threading::this_thread::name () noexcept |
Gets the thread name of the current thread. | |
void | xtd::threading::this_thread::name (const xtd::string &name) |
Sets the thread name of the current thread. | |
xtd::threading::thread_priority | xtd::threading::this_thread::priority () noexcept |
Gets the thread priority of the current thread. | |
void | xtd::threading::this_thread::priority (xtd::threading::thread_priority priority) |
Sets the thread priority of the current thread. | |
xtd::intptr | xtd::threading::this_thread::thread_id () noexcept |
Gets the thread id of the current thread. | |
Public Static Methods | |
xtd::intptr | xtd::threading::this_thread::get_id () noexcept |
Returns the thread id of the current thread. | |
void | xtd::threading::this_thread::sleep_for (const xtd::time_span &sleep_duration) |
Stops the execution of the current thread for a specified time duration. | |
void | xtd::threading::this_thread::sleep_until (const xtd::date_time &sleep_time) |
Stops the execution of the current thread until a specified time point. | |
bool | xtd::threading::this_thread::yield () noexcept |
Suggests that the implementation reschedule execution of threads. | |