5 #include "../core_export.h" 6 #include "../iequatable.h" 16 class cancellation_token_source;
71 bool can_be_canceled() const noexcept;
77 bool is_cancellation_requested() const noexcept;
94 bool canceled_ = false;
95 cancellation_token_source* token_source_ =
nullptr;
96 std::shared_ptr<threading::
wait_handle> wait_handle_;
Contains xtd::threading::wait_handle exception.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Signals to a xtd::threading::cancellation_token that it should be canceled.
Definition: cancellation_token_source.h:36
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Propagates notification that operations should be canceled.
Definition: cancellation_token.h:37
static cancellation_token none
Represents an empty xtd::threading::cancellation_token value.
Definition: cancellation_token.h:46
Encapsulates operating system specific objects that wait for exclusive access to shared resources...
Definition: wait_handle.h:48