ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
wakeup.h File Reference

Go to the source code of this file.

Typedefs

typedef struct platform_wakeup platform_wakeup_t

Functions

asciichat_error_t platform_wakeup_create (platform_wakeup_t **out)
void platform_wakeup_signal (platform_wakeup_t *wake)
bool platform_wakeup_wait (platform_wakeup_t *wake, uint64_t timeout_ns)
void platform_wakeup_destroy (platform_wakeup_t *wake)

Typedef Documentation

◆ platform_wakeup_t

typedef struct platform_wakeup platform_wakeup_t

Definition at line 9 of file wakeup.h.

Function Documentation

◆ platform_wakeup_create()

asciichat_error_t platform_wakeup_create ( platform_wakeup_t ** out)

Coalescing notification for a single consumer. Publish work before signal; after wait returns, inspect the work even if the wait timed out. Join all users before destroying the notification.

References out.

Referenced by session_pipeline_create().

◆ platform_wakeup_destroy()

void platform_wakeup_destroy ( platform_wakeup_t * wake)

◆ platform_wakeup_signal()

void platform_wakeup_signal ( platform_wakeup_t * wake)

◆ platform_wakeup_wait()

bool platform_wakeup_wait ( platform_wakeup_t * wake,
uint64_t timeout_ns )