| 1 | // Copyright (C) 2024 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | // |
| 5 | // W A R N I N G |
| 6 | // ------------- |
| 7 | // |
| 8 | // This file is not part of the Qt API. It exists purely as an |
| 9 | // implementation detail. This header file may change from version to |
| 10 | // version without notice, or even be removed. |
| 11 | // |
| 12 | // We mean it. |
| 13 | // |
| 14 | |
| 15 | #ifndef QAUTORESETEVENT_P_H |
| 16 | #define QAUTORESETEVENT_P_H |
| 17 | |
| 18 | #include <QtCore/qglobal.h> |
| 19 | |
| 20 | |
| 21 | // TODO: kqueue based implementation |
| 22 | #ifdef Q_OS_LINUX |
| 23 | # include "qautoresetevent_linux_p.h" |
| 24 | |
| 25 | QT_BEGIN_NAMESPACE |
| 26 | namespace QtPrivate { |
| 27 | using QAutoResetEvent = QAutoResetEventEventFD; |
| 28 | } // namespace QtPrivate |
| 29 | QT_END_NAMESPACE |
| 30 | |
| 31 | #elif defined(Q_OS_WIN) |
| 32 | # include "qautoresetevent_win32_p.h" |
| 33 | |
| 34 | QT_BEGIN_NAMESPACE |
| 35 | namespace QtPrivate { |
| 36 | using QAutoResetEvent = QAutoResetEventWin32; |
| 37 | } // namespace QtPrivate |
| 38 | QT_END_NAMESPACE |
| 39 | |
| 40 | #elif defined(Q_OS_APPLE) |
| 41 | # include "qautoresetevent_kqueue_p.h" |
| 42 | |
| 43 | QT_BEGIN_NAMESPACE |
| 44 | namespace QtPrivate { |
| 45 | using QAutoResetEvent = QAutoResetEventKQueue; |
| 46 | } // namespace QtPrivate |
| 47 | QT_END_NAMESPACE |
| 48 | |
| 49 | #else |
| 50 | # include "qautoresetevent_pipe_p.h" |
| 51 | |
| 52 | QT_BEGIN_NAMESPACE |
| 53 | namespace QtPrivate { |
| 54 | using QAutoResetEvent = QAutoResetEventPipe; |
| 55 | } // namespace QtPrivate |
| 56 | QT_END_NAMESPACE |
| 57 | |
| 58 | #endif |
| 59 | |
| 60 | #endif // QAUTORESETEVENT_P_H |
| 61 | |