File SolidSyslogPosixMutex.h¶
FileList > Interface > SolidSyslogPosixMutex.h
Go to the source code of this file
A Mutex wrapping pthread_mutex_t, for thread-safe buffers and pools on a POSIX host.
#include "ExternC.h"
Public Functions¶
| Type | Name |
|---|---|
| struct SolidSyslogMutex * | SolidSyslogPosixMutex_Create (void) Create takes no config; an exhausted pool — or a failed pthread_mutex_init — falls back to the shared NullMutex, whose Lock and Unlock are no-ops. |
| void | SolidSyslogPosixMutex_Destroy (struct SolidSyslogMutex * base) Release the pool slot; destroys the underlying pthread_mutex_t (only if it was successfully initialised). |
Public Functions Documentation¶
function SolidSyslogPosixMutex_Create¶
Create takes no config; an exhausted pool — or a failed pthread_mutex_init — falls back to the shared NullMutex, whose Lock and Unlock are no-ops.
function SolidSyslogPosixMutex_Destroy¶
Release the pool slot; destroys the underlying pthread_mutex_t (only if it was successfully initialised).
The documentation for this class was generated from the following file Platform/Posix/Interface/SolidSyslogPosixMutex.h