7#include "../object.hpp" 
    8#include "../time_span.hpp" 
  127      bool try_add_count(
int32 count) noexcept;
 
  138      bool wait(
int32 milliseconds_timeout);
 
  171      bool wait_wtih_cancellation_token();
 
  172      bool wait_wtih_cancellation_token(
int32 milliseconds_timeout);
 
Contains xtd::threading::cancellation_token class.
 
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
 
Propagates notification that operations should be canceled.
Definition cancellation_token.hpp:39
 
Represents a synchronization primitive that is signaled when its count reaches zero.
Definition countdown_event.hpp:30
 
int32 current_count() const
Gets the number of remaining signals required to set the event.
 
bool try_add_count() noexcept
Attempts to increment xtd::threading::countdown_event::current_count by one.
 
countdown_event(int32 initial_count)
Initializes a new instance of xtd::threading::countdown_event class with the specified count.
 
const xtd::threading::wait_handle & wait_handle() const
Gets a xtd::threading::wait_handle that is used to wait for the event to be set.
 
void add_count()
Increments the xtd::threading::countdown_event's current count by one.
 
void reset(int32 count)
Resets the xtd::threading::countdown_event::initial_count property to a specified value.
 
bool signal()
Registers a signal with the xtd::threading::countdown_event, decrementing the value of xtd::threading...
 
bool is_set() const
ndicates whether the xtd::threading::countdown_event object's current count has reached zero.
 
void add_count(int32 count)
Increments the xtd::threading::countdown_event's current count by one.
 
xtd::threading::wait_handle & wait_handle()
Gets a xtd::threading::wait_handle that is used to wait for the event to be set.
 
void reset()
Resets the xtd::threading::countdown_event to the value of xtd::threading::countdown_event::initial_c...
 
void close()
Close the current instance of the xtd::threading::countdown_event class.
 
bool signal(int32 signal_count)
Registers multiple signals with the xtd::threading::countdown_event, decrementing the value of xtd::t...
 
int32 initial_count() const
Gets the numbers of signals initially required to set the event.
 
Contains a constant used to specify an infinite amount of time. This class cannot be inherited.
Definition timeout.hpp:33
 
Encapsulates operating system specific objects that wait for exclusive access to shared resources.
Definition wait_handle.hpp:52
 
#define core_export_
Define shared library export.
Definition core_export.hpp:13
 
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
 
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
 
Represents a time interval.
Definition time_span.hpp:29
 
Contains xtd::threading::wait_handle exception.