xtd 0.2.0
Loading...
Searching...
No Matches
unnamed_event_wait_handle.hpp
Go to the documentation of this file.
1
4#pragma once
6#if !defined(__XTD_CORE_NATIVE_LIBRARY__)
7#error "Do not include this file: Internal use only"
8#endif
10
11#include <xtd/core_native_export>
12#include <cstddef>
13#include <cstdint>
14#include <string>
15
17namespace xtd {
19 namespace threading {
20 class event_wait_handle;
21 }
23
26 namespace native {
35 class core_native_export_ unnamed_event_wait_handle final {
38 protected:
40
48 static intmax_t create(bool initial_state, bool manual_reset);
49
53 static void destroy(intmax_t handle);
54
59 static bool set(intmax_t handle, bool& io_error);
60
65 static bool reset(intmax_t handle, bool& io_error);
66
77 static uint32_t wait(intmax_t handle, int32_t milliseconds_timeout, bool manual_reset);
79 };
80 }
81}
Contains unnamed_event_wait_handle native API.
Definition unnamed_event_wait_handle.hpp:35
static bool reset(intmax_t handle, bool &io_error)
Sets the state of the event to nonsignaled, causing threads to block.
static intmax_t create(bool initial_state, bool manual_reset)
Create named event wait handle with specified initial state and manual reset.
static bool set(intmax_t handle, bool &io_error)
Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
static uint32_t wait(intmax_t handle, int32_t milliseconds_timeout, bool manual_reset)
Wait named event wait handle with specified event wait handle handle, timeout and manual reset.
static void destroy(intmax_t handle)
Destroy named event wait handle with specified event wait handle handle.
Represents a thread synchronization event.
Definition event_wait_handle.hpp:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10