|
PatchworkOS
69292a3
A non-POSIX operating system.
|
Threading. More...
Threading.
Data Structures | |
| struct | _thread_t |
Macros | |
| #define | _MTX_SPIN_COUNT 100 |
| #define | _THREADS_MAX 2048 |
| #define | _THREAD_ATTACHED 1 |
| #define | _THREAD_DETACHED 2 |
| #define | _THREAD_JOINING 3 |
| #define | _THREAD_EXITED 4 |
| #define | _THREAD_SELF ((_thread_t __seg_fs*)0) |
Typedefs | |
| typedef struct _thread | _thread_t |
| typedef void(* | _thread_entry_t) (_thread_t *) |
Functions | |
| void | _threading_init (void) |
| _thread_t * | _thread_new (thrd_start_t func, void *arg) |
| void | _thread_free (_thread_t *thread) |
| _thread_t * | _thread_get (tid_t id) |
| #define _MTX_SPIN_COUNT 100 |
Definition at line 21 of file threading.h.
| #define _THREADS_MAX 2048 |
Definition at line 23 of file threading.h.
| #define _THREAD_ATTACHED 1 |
Definition at line 29 of file threading.h.
| #define _THREAD_DETACHED 2 |
Definition at line 30 of file threading.h.
| #define _THREAD_JOINING 3 |
Definition at line 31 of file threading.h.
| #define _THREAD_EXITED 4 |
Definition at line 32 of file threading.h.
| #define _THREAD_SELF ((_thread_t __seg_fs*)0) |
Definition at line 53 of file threading.h.
| typedef struct _thread _thread_t |
Definition at line 25 of file threading.h.
| typedef void(* _thread_entry_t) (_thread_t *) |
Definition at line 27 of file threading.h.
| void _threading_init | ( | void | ) |
Definition at line 63 of file threading.c.
| _thread_t * _thread_new | ( | thrd_start_t | func, |
| void * | arg | ||
| ) |
Definition at line 86 of file threading.c.
| void _thread_free | ( | _thread_t * | thread | ) |
Definition at line 121 of file threading.c.