8 #include "../time_span.h" 55 int32 current_count()
const;
60 int32 initial_count()
const;
90 void add_count(
int32 count);
104 void reset(
int32 count);
121 bool try_add_count() noexcept;
125 bool try_add_count(
int32 count) noexcept;
136 bool wait(
int32 milliseconds_timeout);
156 bool wait(
int32 milliseconds_timeout,
const cancellation_token& cancellation_token);
164 bool wait(
const time_span& timeout,
const cancellation_token& cancellation_token);
168 std::shared_ptr<data> data_;
169 bool wait_wtih_cancellation_token();
170 bool wait_wtih_cancellation_token(
int32 milliseconds_timeout);
signal
Specifies signals that can interrupt the current process.
Definition: signal.h:18
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
Contains xtd::threading::cancellation_token class.
Represents a synchronization primitive that is signaled when its count reaches zero.
Definition: countdown_event.h:28
The operating system is other.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Represents a time interval.
Definition: time_span.h:26
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Contains a constant used to specify an infinite amount of time. This class cannot be inherited...
Definition: timeout.h:31
Propagates notification that operations should be canceled.
Definition: cancellation_token.h:37
Encapsulates operating system specific objects that wait for exclusive access to shared resources...
Definition: wait_handle.h:48