MOS Source Code
|
#include "mos/platform/platform_defs.h"
#include <mos/lib/structures/list.h>
#include <mos/lib/sync/spinlock.h>
#include <mos/locks/futex.h>
#include <mos/mm/paging/paging.h>
#include <mos/platform/platform.h>
#include <mos/syslog/printk.h>
#include <mos/tasks/schedule.h>
#include <mos/tasks/wait.h>
#include <mos/types.h>
#include <mos_stdlib.h>
Go to the source code of this file.
Classes | |
struct | futex_private_t |
Typedefs | |
typedef ptr_t | futex_key_t |
Functions | |
static futex_key_t | futex_get_key (const futex_word_t *futex) |
bool | futex_wait (futex_word_t *futex, futex_word_t expected) |
bool | futex_wake (futex_word_t *futex, size_t num_to_wake) |
Variables | |
static list_head | futex_list_head = LIST_HEAD_INIT(futex_list_head) |
static spinlock_t | futex_list_lock = SPINLOCK_INIT |
typedef ptr_t futex_key_t |
|
static |
Definition at line 28 of file futex.c.
Referenced by futex_wait(), and futex_wake().
bool futex_wait | ( | futex_word_t * | futex, |
futex_word_t | expected ) |
bool futex_wake | ( | futex_word_t * | futex, |
size_t | num_to_wake ) |
|
static |
Definition at line 25 of file futex.c.
Referenced by futex_wait(), and futex_wake().
|
static |
Definition at line 26 of file futex.c.
Referenced by futex_wait(), and futex_wake().