|
Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Task service: validates parameters, then dispatches to the backend registered via sapi_task_register_backend() (ADR-005). More...
#include "safeapi/oal/task/sapi_task.h"#include "safeapi/utils/lifecycle/sapi_lifecycle.h"#include "safeapi_backend/task/sapi_task_backend.h"Go to the source code of this file.
Functions | |
| 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.1). Call once at startup. | |
| sapi_status_t | sapi_task_create (sapi_task_storage_t *storage, const sapi_task_config_t *config, sapi_task_handle_t *out_handle) |
| Creates a task in the suspended state. | |
| sapi_status_t | sapi_task_start (sapi_task_handle_t handle) |
| Starts a created task. | |
| sapi_status_t | sapi_task_suspend (sapi_task_handle_t handle) |
| Suspends a running task. | |
| sapi_status_t | sapi_task_destroy (sapi_task_handle_t handle) |
| Terminates and destroys a task. | |
Variables | |
| static const sapi_task_backend_t * | s_backend = NULL |
| Currently registered backend, or NULL if none (ADR-005). | |
Task service: validates parameters, then dispatches to the backend registered via sapi_task_register_backend() (ADR-005).
Definition in file sapi_task.c.
|
static |
Currently registered backend, or NULL if none (ADR-005).
Local makros Local types declarations Local variables declarations
Definition at line 17 of file sapi_task.c.