LF OS
Hobby operating system for amd64 with high ambitions
|
#include <condvar.h>
#include <tpa.h>
#include <vm.h>
#include <log.h>
#include <scheduler.h>
#include <unused_param.h>
Go to the source code of this file.
Data Structures | |
struct | condvar_data |
Functions | |
void | init_condvar (void) |
void | sc_handle_locking_create_condvar (uint64_t *cv, uint64_t *e) |
void | sc_handle_locking_destroy_condvar (uint64_t condvar, uint64_t *e) |
void | sc_handle_locking_signal_condvar (uint64_t condvar, uint64_t amount, uint64_t *e) |
void | sc_handle_locking_wait_condvar (uint64_t condvar, uint64_t timeout, uint64_t *e) |
Variables | |
static tpa_t * | condvars |
static uint64_t | next_condvar = 1 |
struct condvar_data |
void init_condvar | ( | void | ) |
Definition at line 16 of file condvar.c.
References condvars, kernel_alloc, and tpa_new().
Definition at line 20 of file condvar.c.
References condvars, logd, logw, next_condvar, tpa_set(), and condvar_data::wait_count.
Definition at line 38 of file condvar.c.
References condvar, condvars, logd, next_condvar, tpa_get(), tpa_set(), and condvar_data::wait_count.
Definition at line 55 of file condvar.c.
References amount, condvar, wait_data::condvar, condvars, scheduler_waitable_done(), tpa_get(), condvar_data::wait_count, and wait_reason_condvar.
Definition at line 72 of file condvar.c.
References condvar, wait_data::condvar, condvars, scheduler_wait_for(), timeout, tpa_get(), UNUSED_PARAM, condvar_data::wait_count, and wait_reason_condvar.