Line data Source code
1 : /* SPDX-FileCopyrightText: Copyright 2026 Cozens Software Solutions Limited
2 : * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 OR LicenseRef-PolyForm-Internal-Use-1.0.0 OR LicenseRef-COSOSO-Commercial
3 : */
4 :
5 : #include "SolidSyslogNullMutex.h"
6 :
7 : #include "SolidSyslogMutexDefinition.h"
8 :
9 : static void NullMutex_Lock(struct SolidSyslogMutex* base);
10 : static void NullMutex_Unlock(struct SolidSyslogMutex* base);
11 :
12 556 : struct SolidSyslogMutex* SolidSyslogNullMutex_Get(void)
13 : {
14 : static struct SolidSyslogMutex instance = {
15 : .Lock = NullMutex_Lock,
16 : .Unlock = NullMutex_Unlock,
17 : };
18 556 : return &instance;
19 : }
20 :
21 15897 : static void NullMutex_Lock(struct SolidSyslogMutex* base)
22 : {
23 : (void) base;
24 15897 : }
25 :
26 15897 : static void NullMutex_Unlock(struct SolidSyslogMutex* base)
27 : {
28 : (void) base;
29 15897 : }
|