Skip to content

FreeRTOS platform

«interface»SolidSyslogMutexFreeRtosMutexFreeRtos

File SolidSyslogFreeRtosMutex.h

FileList > FreeRtos > Interface > SolidSyslogFreeRtosMutex.h

  • #include "SolidSyslogExternC.h"

Detailed Description

A Mutex wrapping a statically-allocated FreeRTOS mutex semaphore, for buffers shared between tasks on a FreeRTOS target.

Requires configSUPPORT_STATIC_ALLOCATION=1 and configUSE_MUTEXES=1.

Public Functions Documentation

SolidSyslogFreeRtosMutex_Create

Create takes no config; an exhausted pool falls back to the shared NullMutex, whose Lock and Unlock are no-ops.

struct SolidSyslogMutex * SolidSyslogFreeRtosMutex_Create (
    void
) 

Without configSUPPORT_STATIC_ALLOCATION=1 and configUSE_MUTEXES=1 the adapter compiles to nothing, so the build fails to link rather than falling back.


SolidSyslogFreeRtosMutex_Destroy

Release the pool slot; deletes the underlying FreeRTOS mutex semaphore.

void SolidSyslogFreeRtosMutex_Destroy (
    struct SolidSyslogMutex * base
) 



The documentation for this class was generated from the following file Platform/FreeRtos/Interface/SolidSyslogFreeRtosMutex.h