|
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_unlock (mtx_t *mutex) |
| int mtx_unlock | ( | mtx_t * | mutex | ) |
Definition at line 10 of file mtx_unlock.c.
References _MTX_CONTESTED, _MTX_UNLOCKED, atomic_exchange, CLOCKS_NEVER, mtx_t::depth, ERR, futex(), FUTEX_WAKE, gettid(), mutex, mtx_t::owner, mtx_t::state, thrd_error, and thrd_success.
Referenced by _files_close(), _files_flush(), _files_push(), _files_remove(), _heap_release(), _thread_free(), _thread_get(), _thread_new(), display_cmd_alloc(), display_cmds_flush(), display_disconnect(), display_dispatch(), display_dispatch_pending(), display_get_surface_info(), display_is_connected(), display_next(), display_push(), display_set_focus(), display_subscribe(), display_unsubscribe(), display_wait(), fclose(), fflush(), fgetc(), fgets(), font_default(), font_free(), font_new(), fputc(), fputs(), fread(), fseek(), ftell(), fwrite(), image_free(), image_new_blank(), puts(), ungetc(), vfprintf(), vfscanf(), window_free(), and window_new().