PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
Fast User-space Mutex

Fast User-space Mutex. More...

Collaboration diagram for Fast User-space Mutex:

Detailed Description

Fast User-space Mutex.

Patchwork uses a Futex (Fast User-space Mutex) implementation to let user space implement synchronization primitives like mutexes and conditional variables efficiently.

Data Structures

struct  futex_t
 Futex structure. More...
 
struct  futex_ctx_t
 Per-process futex context. More...
 

Functions

void futex_ctx_init (futex_ctx_t *ctx)
 Initialize a per-process futex context.
 
void futex_ctx_deinit (futex_ctx_t *ctx)
 Deinitialize a per-process futex context. *.
 

Function Documentation

◆ futex_ctx_init()

void futex_ctx_init ( futex_ctx_t ctx)

Initialize a per-process futex context.

Parameters
ctxPointer to the futex context to initialize.

Definition at line 16 of file futex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ futex_ctx_deinit()

void futex_ctx_deinit ( futex_ctx_t ctx)

Deinitialize a per-process futex context. *.

Parameters
ctxPointer to the futex context to deinitialize.

Definition at line 22 of file futex.c.

Here is the call graph for this function:
Here is the caller graph for this function: