libnx  v4.7.0
Data Structures | Functions
uevent.h File Reference

User-mode event synchronization primitive. More...

#include "wait.h"

Go to the source code of this file.

Data Structures

struct  UEvent
 User-mode event object. More...
 

Functions

static Waiter waiterForUEvent (UEvent *e)
 Creates a waiter for a user-mode event.
 
void ueventCreate (UEvent *e, bool auto_clear)
 Creates a user-mode event. More...
 
void ueventClear (UEvent *e)
 Clears the event signal. More...
 
void ueventSignal (UEvent *e)
 Signals the event. More...
 

Detailed Description

User-mode event synchronization primitive.

Author
plutoo

Function Documentation

◆ ueventClear()

void ueventClear ( UEvent e)

Clears the event signal.

Parameters
[in]eUEvent object.

◆ ueventCreate()

void ueventCreate ( UEvent e,
bool  auto_clear 
)

Creates a user-mode event.

Parameters
[out]eUEvent object.
[in]auto_clearWhether to automatically clear the event.
Note
It is safe to wait on this event with several threads simultaneously.
If more than one thread is listening on it, at least one thread will get the signal. No other guarantees.

◆ ueventSignal()

void ueventSignal ( UEvent e)

Signals the event.

Parameters
[in]eUEvent object.