Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
mutex.h File Reference
#include <sys/atomic.h>
#include <zephyr/types.h>
#include <sys_clock.h>
#include <syscalls/mutex.h>

Go to the source code of this file.

Data Structures

struct  sys_mutex
 

Macros

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

Functions

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