PatchworkOS  69292a3
A non-POSIX operating system.
Loading...
Searching...
No Matches
threading.c File Reference
#include "threading.h"
#include "syscalls.h"
#include <stdlib.h>
Include dependency graph for threading.c:

Go to the source code of this file.

Functions

static _Atomic (_thread_t *)
 
static uint64_t _thread_insert (_thread_t *thread)
 
static void _thread_remove (_thread_t *thread)
 
static void _thread_init (_thread_t *thread)
 
void _threading_init (void)
 
static _NORETURN void _thread_entry (_thread_t *thread)
 
_thread_t_thread_new (thrd_start_t func, void *arg)
 
void _thread_free (_thread_t *thread)
 
_thread_t_thread_get (tid_t id)
 

Variables

static _thread_t thread0
 

Function Documentation

◆ _Atomic()

static _Atomic ( _thread_t )
static

Definition at line 8 of file threading.c.

◆ _thread_insert()

static uint64_t _thread_insert ( _thread_t thread)
static

Definition at line 17 of file threading.c.

Here is the caller graph for this function:

◆ _thread_remove()

static void _thread_remove ( _thread_t thread)
static

Definition at line 33 of file threading.c.

Here is the caller graph for this function:

◆ _thread_init()

static void _thread_init ( _thread_t thread)
static

Definition at line 52 of file threading.c.

Here is the caller graph for this function:

◆ _thread_entry()

static _NORETURN void _thread_entry ( _thread_t thread)
static

Definition at line 79 of file threading.c.

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

Variable Documentation

◆ thread0

_thread_t thread0
static

Definition at line 6 of file threading.c.