7 #include "../icomparable.h" 8 #include "../iequatable.h" 36 class event_wait_handle_base;
37 class named_event_wait_handle;
38 class unnamed_event_wait_handle;
103 template <
typename char_t>
105 ~event_wait_handle();
111 intptr handle()
const noexcept
override;
112 void handle(
intptr value)
override;
118 void close()
override;
120 int32 compare_to(
const event_wait_handle& value)
const noexcept
override;
122 bool equals(
const event_wait_handle& value)
const noexcept
override;
135 static event_wait_handle open_existing(
const ustring& name);
162 static bool try_open_existing(
const ustring& name, event_wait_handle& result) noexcept;
171 bool wait(
int32 milliseconds_timeout)
override;
175 void create(
bool initial_state,
bool& created_new);
177 std::shared_ptr<data> data_;
signal
Specifies signals that can interrupt the current process.
Definition: signal.h:18
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Contains xtd::threading::wait_handle exception.
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition: icomparable.h:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents a thread synchronization event.
Definition: event_wait_handle.h:35
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Contains xtd::threading::event_reset_mode enumeration.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
event_reset_mode
Indicates whether an xtd::threading::event_wait_handle is reset automatically or manually after recei...
Definition: event_reset_mode.h:22
Encapsulates operating system specific objects that wait for exclusive access to shared resources...
Definition: wait_handle.h:48