Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mutex.h File Reference
#include <zephyr/sys/atomic.h>
#include <zephyr/types.h>
#include <zephyr/sys_clock.h>
#include <zephyr/syscalls/mutex.h>

Go to the source code of this file.

Data Structures

struct  sys_mutex
 

Macros

#define SYS_MUTEX_DEFINE(name)
 Statically define and initialize a sys_mutex.
 

Functions

static void sys_mutex_init (struct sys_mutex *mutex)
 Initialize a mutex.
 
static int sys_mutex_lock (struct sys_mutex *mutex, k_timeout_t timeout)
 Lock a mutex.
 
static int sys_mutex_unlock (struct sys_mutex *mutex)
 Unlock a mutex.