Safe API Framework
0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Toggle main menu visibility
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
10
#include "
rte/utils/status/rte_status.h
"
11
#include "
rte/oal/mutex/rte_mutex.h
"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
34
typedef
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);
41
}
rte_osadapter_mutex_t
;
42
49
rte_status_t
rte_osadapter_mutex_register
(
const
rte_osadapter_mutex_t
*adapter);
50
51
52
#ifdef __cplusplus
53
}
54
#endif
55
56
#endif
/* RTE_OSADAPTER_MUTEX_H */
rte_mutex_handle_t
struct rte_mutex_impl_s * rte_mutex_handle_t
Definition
rte_mutex.h:47
rte_status_t
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_duration_ms_t
uint32_t rte_duration_ms_t
Definition
rte_types.h:27
rte_mutex.h
OS Abstraction Layer - Mutual exclusion service.
rte_osadapter_mutex_register
rte_status_t rte_osadapter_mutex_register(const rte_osadapter_mutex_t *adapter)
Registers the OSAdapter mutex implementation.
Definition
rte_mutex.c:25
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
rte_osadapter_mutex_t
OSAdapter mutex operations vtable.
Definition
rte_osadapter_mutex.h:35
include
rte_osadapter
mutex
rte_osadapter_mutex.h
Generated by
1.18.0