Kore 3
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1#ifndef KORE_THREADS_EVENT_HEADER
2#define KORE_THREADS_EVENT_HEADER
3
4#include <kore3/global.h>
5
6#include <kore3/backend/event.h>
7
8#include <stdbool.h>
9
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18typedef struct kore_event {
19 kore_event_impl impl;
21
27KORE_FUNC void kore_event_init(kore_event *event, bool auto_clear);
28
33KORE_FUNC void kore_event_destroy(kore_event *event);
34
39KORE_FUNC void kore_event_signal(kore_event *event);
40
45KORE_FUNC void kore_event_wait(kore_event *event);
46
53KORE_FUNC bool kore_event_try_to_wait(kore_event *event, double timeout);
54
59KORE_FUNC void kore_event_reset(kore_event *event);
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif
KORE_FUNC bool kore_event_try_to_wait(kore_event *event, double timeout)
Waits for an event to be signaled or the provided timeout to run out - whatever happens first.
KORE_FUNC void kore_event_signal(kore_event *event)
Signals an event which allows threads which are waiting for the event to continue.
KORE_FUNC void kore_event_wait(kore_event *event)
Waits for an event to be signaled.
KORE_FUNC void kore_event_init(kore_event *event, bool auto_clear)
Initializes an event-object.
KORE_FUNC void kore_event_reset(kore_event *event)
Resets an event to an unsignaled state.
KORE_FUNC void kore_event_destroy(kore_event *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:18