PatchworkOS  69292a3
A non-POSIX operating system.
Loading...
Searching...
No Matches
threading.h File Reference
#include <errno.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <sys/proc.h>
#include <threads.h>
Include dependency graph for threading.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)