Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_task_backend.h
Go to the documentation of this file.
1
15#ifndef SAFEAPI_OS_TASK_BACKEND_H
16#define SAFEAPI_OS_TASK_BACKEND_H
17
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
30typedef struct sapi_task_backend_s
31{
33 sapi_status_t (*create)(sapi_task_storage_t *storage,
34 const sapi_task_config_t *config,
35 sapi_task_handle_t *out_handle);
43
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* SAFEAPI_OS_TASK_BACKEND_H */
58 /* TASK_BACKEND */
sapi_status_t
Common result/status codes.
Definition sapi_status.h:27
sapi_status_t sapi_task_register_backend(const sapi_task_backend_t *backend)
Registers the backend implementation used by every sapi_task_* call (ADR-005 section 2....
Definition sapi_task.c:25
struct sapi_task_impl_s * sapi_task_handle_t
Opaque handle to a created task, returned by sapi_task_create().
Definition sapi_task.h:32
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
OS Abstraction Layer - Task/thread scheduling service.
Backend vtable: an integrator's implementation of the task scheduling service for a specific OS/RTOS ...
sapi_status_t(*) suspend(sapi_task_handle_t handle)
Backend implementation of sapi_task_suspend(). May be NULL.
sapi_status_t(*) create(sapi_task_storage_t *storage, const sapi_task_config_t *config, sapi_task_handle_t *out_handle)
Backend implementation of sapi_task_create(). May be NULL.
sapi_status_t(*) destroy(sapi_task_handle_t handle)
Backend implementation of sapi_task_destroy(). May be NULL.
sapi_status_t(*) start(sapi_task_handle_t handle)
Backend implementation of sapi_task_start(). May be NULL.
Configuration for sapi_task_create().
Definition sapi_task.h:39