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
8
typedef
futex_word_t
mutex_t
;
9
#define MUTEX_INIT 0
10
11
should_inline
void
mutex_init
(
mutex_t
*mutex)
12
{
13
*mutex =
MUTEX_INIT
;
14
}
15
16
MOSAPI
void
mutex_acquire
(
mutex_t
*mutex);
17
MOSAPI
void
mutex_release
(
mutex_t
*mutex);
MOSAPI
#define MOSAPI
Definition
mos_global.h:102
should_inline
#define should_inline
Definition
mos_global.h:37
moslib_global.h
mutex_t
futex_word_t mutex_t
Definition
mutex.h:8
MUTEX_INIT
#define MUTEX_INIT
Definition
mutex.h:9
mutex_init
should_inline void mutex_init(mutex_t *mutex)
Definition
mutex.h:11
mutex_acquire
#define mutex_acquire(mutex)
Definition
rpc_client.c:41
mutex_release
#define mutex_release(mutex)
Definition
rpc_client.c:42
types.h
futex_word_t
s32 futex_word_t
Definition
types.h:99
kernel
include
private
mos
lib
sync
mutex.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0