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_task.h
Go to the documentation of this file.
1
7
#ifndef RTE_OSADAPTER_TASK_H
8
#define RTE_OSADAPTER_TASK_H
9
10
#include "
rte/oal/task/rte_task.h
"
11
#include "
rte/utils/status/rte_status.h
"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
20
typedef
struct
rte_osadapter_task_s
21
{
22
rte_status_t
(*create)(rte_task_storage_t *storage,
23
const
rte_task_config_t
*config,
24
rte_task_handle_t
*out_handle);
25
rte_status_t
(*start)(
rte_task_handle_t
handle);
26
rte_status_t
(*suspend)(
rte_task_handle_t
handle);
27
rte_status_t
(*destroy)(
rte_task_handle_t
handle);
28
}
rte_osadapter_task_t
;
29
39
rte_status_t
rte_osadapter_task_register
(
const
rte_osadapter_task_t
*adapter);
40
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif
/* RTE_OSADAPTER_TASK_H */
rte_status_t
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_task_handle_t
struct rte_task_impl_s * rte_task_handle_t
Opaque handle to a created task, returned by rte_task_create().
Definition
rte_task.h:32
rte_osadapter_task_register
rte_status_t rte_osadapter_task_register(const rte_osadapter_task_t *adapter)
Registers the OSAdapter task implementation.
Definition
rte_task.c:25
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
rte_task.h
OS Abstraction Layer - Task/thread scheduling service.
rte_osadapter_task_t
OSAdapter task scheduling operations vtable.
Definition
rte_osadapter_task.h:21
rte_task_config_t
Configuration for rte_task_create().
Definition
rte_task.h:39
include
rte_osadapter
task
rte_osadapter_task.h
Generated by
1.18.0