/src/poco/Foundation/src/Mutex.cpp
Line | Count | Source |
1 | | // |
2 | | // Mutex.cpp |
3 | | // |
4 | | // Library: Foundation |
5 | | // Package: Threading |
6 | | // Module: Mutex |
7 | | // |
8 | | // Copyright (c) 2004-2008, Applied Informatics Software Engineering GmbH. |
9 | | // and Contributors. |
10 | | // |
11 | | // SPDX-License-Identifier: BSL-1.0 |
12 | | // |
13 | | |
14 | | |
15 | | #include "Poco/Mutex.h" |
16 | | |
17 | | #if defined(POCO_ENABLE_STD_MUTEX) |
18 | | #include "Mutex_STD.cpp" |
19 | | #elif defined(POCO_OS_FAMILY_WINDOWS) |
20 | | #include "Mutex_WIN32.cpp" |
21 | | #elif defined(POCO_VXWORKS) |
22 | | #include "Mutex_VX.cpp" |
23 | | #else |
24 | | #include "Mutex_POSIX.cpp" |
25 | | #endif |
26 | | |
27 | | |
28 | | namespace Poco { |
29 | | |
30 | | |
31 | | Mutex::Mutex() |
32 | 0 | { |
33 | 0 | } |
34 | | |
35 | | |
36 | | Mutex::~Mutex() |
37 | | { |
38 | | } |
39 | | |
40 | | |
41 | | FastMutex::FastMutex() |
42 | 42.3k | { |
43 | 42.3k | } |
44 | | |
45 | | |
46 | | FastMutex::~FastMutex() |
47 | | { |
48 | | } |
49 | | |
50 | | |
51 | | SpinlockMutex::SpinlockMutex() |
52 | 0 | { |
53 | 0 | } |
54 | | |
55 | | |
56 | | SpinlockMutex::~SpinlockMutex() |
57 | 0 | { |
58 | 0 | } |
59 | | |
60 | | |
61 | | } // namespace Poco |