Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_mutex_backend_t Struct Reference

Backend vtable: an integrator's implementation of the mutex service for a specific OS/RTOS/BSP target (ADR-033). Any slot may be NULL if that operation is unsupported by the backend, in which case the corresponding sapi_mutex_* call returns SAPI_STATUS_NOT_SUPPORTED. More...

#include <sapi_mutex_backend.h>

Data Fields

sapi_status_t(*) create (sapi_mutex_storage_t *storage, sapi_mutex_handle_t *out_handle)
 Backend implementation of sapi_mutex_create(). May be NULL.
sapi_status_t(*) lock (sapi_mutex_handle_t handle)
 Backend implementation of sapi_mutex_lock(). May be NULL.
sapi_status_t(*) unlock (sapi_mutex_handle_t handle)
 Backend implementation of sapi_mutex_unlock(). May be NULL.
sapi_status_t(*) destroy (sapi_mutex_handle_t handle)
 Backend implementation of sapi_mutex_destroy(). May be NULL.

Detailed Description

Backend vtable: an integrator's implementation of the mutex service for a specific OS/RTOS/BSP target (ADR-033). Any slot may be NULL if that operation is unsupported by the backend, in which case the corresponding sapi_mutex_* call returns SAPI_STATUS_NOT_SUPPORTED.

Definition at line 34 of file sapi_mutex_backend.h.

Field Documentation

◆ create

sapi_status_t(*) sapi_mutex_backend_t::create(sapi_mutex_storage_t *storage, sapi_mutex_handle_t *out_handle)

Backend implementation of sapi_mutex_create(). May be NULL.

Definition at line 37 of file sapi_mutex_backend.h.

◆ lock

sapi_status_t(*) sapi_mutex_backend_t::lock(sapi_mutex_handle_t handle)

Backend implementation of sapi_mutex_lock(). May be NULL.

Definition at line 39 of file sapi_mutex_backend.h.

◆ unlock

sapi_status_t(*) sapi_mutex_backend_t::unlock(sapi_mutex_handle_t handle)

Backend implementation of sapi_mutex_unlock(). May be NULL.

Definition at line 41 of file sapi_mutex_backend.h.

◆ destroy

sapi_status_t(*) sapi_mutex_backend_t::destroy(sapi_mutex_handle_t handle)

Backend implementation of sapi_mutex_destroy(). May be NULL.

Definition at line 43 of file sapi_mutex_backend.h.


The documentation for this struct was generated from the following file: