Skip to content

Posix platform

«interface»SolidSyslogMutexPosixMutexPosix

File SolidSyslogPosixMutex.h

FileList > Interface > SolidSyslogPosixMutex.h

A Mutex wrapping pthread_mutex_t, for thread-safe buffers and pools on a POSIX host.

  • #include "SolidSyslogExternC.h"

Public Functions Documentation

SolidSyslogPosixMutex_Create

Create takes no config; an exhausted pool - or a failed pthread_mutex_init.

struct SolidSyslogMutex * SolidSyslogPosixMutex_Create (
    void
) 

  • falls back to the shared NullMutex, whose Lock and Unlock are no-ops.

SolidSyslogPosixMutex_Destroy

Release the pool slot; destroys the underlying pthread_mutex_t (only if it was successfully initialised).

void SolidSyslogPosixMutex_Destroy (
    struct SolidSyslogMutex * base
) 



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