File rt_mutex.hpp
Expose real time OSs mutex through a common API.
- Author
Maximilien Naveau (maximilien.naveau@gmail.com) license License BSD-3-Clause
- Copyright
Copyright (c) 2019, New York University and Max Planck Gesellschaft.
- Date
2019-05-22
Typedefs
-
typedef pthread_mutex_t rt_mutex
Alias for the real time mutex.
-
typedef pthread_cond_t rt_cond
Alias for the real time condition variable.
Functions
-
static inline int rt_mutex_init(rt_mutex *mutex)
Initialize the mutex.
-
static inline int rt_mutex_destroy(rt_mutex *mutex)
Destroy the mutex.
-
static inline int rt_mutex_lock(rt_mutex *mutex)
Lock the mutex.
-
static inline int rt_mutex_unlock(rt_mutex *mutex)
Unlock the mutex.