MOS Source Code
Loading...
Searching...
No Matches
mutex.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
5#include <mos/moslib_global.h>
6#include <mos/types.h>
7
9#define MUTEX_INIT 0
10
12{
13 *mutex = MUTEX_INIT;
14}
15
16MOSAPI void mutex_acquire(mutex_t *mutex);
17MOSAPI void mutex_release(mutex_t *mutex);
#define MOSAPI
Definition mos_global.h:102
#define should_inline
Definition mos_global.h:37
futex_word_t mutex_t
Definition mutex.h:8
#define MUTEX_INIT
Definition mutex.h:9
should_inline void mutex_init(mutex_t *mutex)
Definition mutex.h:11
#define mutex_acquire(mutex)
Definition rpc_client.c:41
#define mutex_release(mutex)
Definition rpc_client.c:42
s32 futex_word_t
Definition types.h:99