|
PatchworkOS
|
#include <stdatomic.h>#include <stdbool.h>#include <stdio.h>#include <sys/proc.h>#include <threads.h>#include "user/common/syscalls.h"#include "user/common/thread.h"Go to the source code of this file.
Functions | |
| int | mtx_init (mtx_t *mutex, int type) |
| int mtx_init | ( | mtx_t * | mutex, |
| int | type | ||
| ) |
Definition at line 10 of file mtx_init.c.
References _MTX_UNLOCKED, atomic_init, mtx_t::depth, ERR, mutex, mtx_t::owner, mtx_t::state, and thrd_success.
Referenced by _file_init(), _files_init(), _heap_init(), _threading_init(), and display_new().