PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
thread.c File Reference
#include "thread.h"
#include "syscalls.h"
#include <stdlib.h>
Include dependency graph for thread.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 thread.c.

◆ _thread_insert()

static uint64_t _thread_insert ( _thread_t thread)
static

Definition at line 17 of file thread.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 thread.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 thread.c.

Here is the caller graph for this function:

◆ _threading_init()

void _threading_init ( void  )

Definition at line 62 of file thread.c.

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

◆ _thread_entry()

static _NORETURN void _thread_entry ( _thread_t thread)
static

Definition at line 76 of file thread.c.

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

◆ _thread_new()

_thread_t * _thread_new ( thrd_start_t  func,
void *  arg 
)

Definition at line 85 of file thread.c.

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

◆ _thread_free()

void _thread_free ( _thread_t thread)

Definition at line 120 of file thread.c.

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

◆ _thread_get()

_thread_t * _thread_get ( tid_t  id)

Definition at line 129 of file thread.c.

Here is the caller graph for this function:

Variable Documentation

◆ thread0

_thread_t thread0
static

Definition at line 6 of file thread.c.