|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Implementation of the process-wide application setup-phase lock - see rte_lifecycle.h. More...
Go to the source code of this file.
Functions | |
| void | rte_lifecycle_lock (void) |
| Locks the application's setup phase. | |
| void | rte_lifecycle_unlock (void) |
| Unlocks the application's setup phase (setup is allowed again). | |
| bool | rte_lifecycle_is_locked (void) |
| rte_status_t | rte_lifecycle_check_setup_allowed (void) |
| Convenience check for a setup-only constructor: call this as one of the first checks in any function that creates/registers a new long-lived resource (a timer, channel, voter, cross-comparator, or watchdog - see this file's own header for the excluded netlink/dual exceptions). | |
Variables | |
| static bool | g_setup_locked = false |
| Single, process-wide setup-phase flag (single instance; no dynamic allocation - same posture as rte_appmanager.c's own g_app_state, see this module's own file header). | |
Implementation of the process-wide application setup-phase lock - see rte_lifecycle.h.
Definition in file rte_lifecycle.c.
|
static |
Single, process-wide setup-phase flag (single instance; no dynamic allocation - same posture as rte_appmanager.c's own g_app_state, see this module's own file header).
Local makros Local types declarations Local variables declarations
Definition at line 18 of file rte_lifecycle.c.