|
PatchworkOS
966e257
A non-POSIX operating system.
|
#include <stdatomic.h>#include "_internal/config.h"#include "_internal/pid_t.h"#include "_internal/tid_t.h"#include "_internal/timespec.h"Go to the source code of this file.
Data Structures | |
| struct | cnd_t |
| struct | thrd_t |
| struct | tss_t |
| Task State Segment structure. More... | |
| struct | mtx_t |
Macros | |
| #define | ONCE_FLAG_INIT 0 |
| #define | TSS_DTOR_ITERATIONS 4 |
| #define | _MTX_UNLOCKED 0 |
| #define | _MTX_LOCKED 1 |
| #define | _MTX_CONTESTED 2 |
Typedefs | |
| typedef void(* | tss_dtor_t) (void *) |
| typedef int(* | thrd_start_t) (void *) |
| typedef int | once_flag |
Enumerations | |
| enum | { mtx_plain , mtx_recursive , mtx_timed } |
| enum | { thrd_timedout , thrd_success , thrd_busy , thrd_error , thrd_nomem } |
| anonymous enum |
| _PUBLIC int cnd_timedwait | ( | cnd_t *_RESTRICT | cond, |
| mtx_t *_RESTRICT | mtx, | ||
| const struct timespec *_RESTRICT | ts | ||
| ) |
Definition at line 11 of file mtx_lock.c.
Definition at line 10 of file mtx_unlock.c.
| _PUBLIC int thrd_create | ( | thrd_t * | thr, |
| thrd_start_t | func, | ||
| void * | arg | ||
| ) |
Definition at line 11 of file thrd_create.c.
Definition at line 10 of file thrd_equal.c.
Definition at line 11 of file thrd_exit.c.
Definition at line 11 of file thrd_join.c.
| _PUBLIC void thrd_yield | ( | void | ) |
| _PUBLIC int tss_create | ( | tss_t * | key, |
| tss_dtor_t | dtor | ||
| ) |