Kore
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1#pragma once
2
3#include <kinc/global.h>
4
5#include <kinc/backend/event.h>
6
7#include <stdbool.h>
8
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17typedef struct kinc_event {
18 kinc_event_impl_t impl;
19} kinc_event_t;
20
26KINC_FUNC void kinc_event_init(kinc_event_t *event, bool auto_clear);
27
32KINC_FUNC void kinc_event_destroy(kinc_event_t *event);
33
38KINC_FUNC void kinc_event_signal(kinc_event_t *event);
39
44KINC_FUNC void kinc_event_wait(kinc_event_t *event);
45
52KINC_FUNC bool kinc_event_try_to_wait(kinc_event_t *event, double timeout);
53
58KINC_FUNC void kinc_event_reset(kinc_event_t *event);
59
60#ifdef __cplusplus
61}
62#endif
KINC_FUNC void kinc_event_init(kinc_event_t *event, bool auto_clear)
Initializes an event-object.
KINC_FUNC void kinc_event_signal(kinc_event_t *event)
Signals an event which allows threads which are waiting for the event to continue.
KINC_FUNC void kinc_event_wait(kinc_event_t *event)
Waits for an event to be signaled.
KINC_FUNC bool kinc_event_try_to_wait(kinc_event_t *event, double timeout)
Waits for an event to be signaled or the provided timeout to run out - whatever happens first.
KINC_FUNC void kinc_event_reset(kinc_event_t *event)
Resets an event to an unsignaled state.
KINC_FUNC void kinc_event_destroy(kinc_event_t *event)
Destroys an event-object.
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Definition event.h:17