Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
rte_osadapter_mutex.h
Go to the documentation of this file.
1
7#ifndef RTE_OSADAPTER_MUTEX_H
8#define RTE_OSADAPTER_MUTEX_H
9
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
34typedef struct rte_osadapter_mutex_s
35{
36 rte_status_t (*create)(rte_mutex_storage_t *storage, rte_mutex_handle_t *out_handle);
37 rte_status_t (*lock)(rte_mutex_handle_t handle);
38 rte_status_t (*unlock)(rte_mutex_handle_t handle);
39 rte_status_t (*destroy)(rte_mutex_handle_t handle);
40 rte_status_t (*lock_timed)(rte_mutex_handle_t handle, rte_duration_ms_t timeout_ms);
42
50
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* RTE_OSADAPTER_MUTEX_H */
struct rte_mutex_impl_s * rte_mutex_handle_t
Definition rte_mutex.h:47
rte_status_t
Common result/status codes.
Definition rte_status.h:27
uint32_t rte_duration_ms_t
Definition rte_types.h:27
OS Abstraction Layer - Mutual exclusion service.
rte_status_t rte_osadapter_mutex_register(const rte_osadapter_mutex_t *adapter)
Registers the OSAdapter mutex implementation.
Definition rte_mutex.c:25
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
OSAdapter mutex operations vtable.