Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qautoresetevent_p.h
Go to the documentation of this file.
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
25QT_BEGIN_NAMESPACE
26namespace QtPrivate {
27using QAutoResetEvent = QAutoResetEventEventFD;
28} // namespace QtPrivate
29QT_END_NAMESPACE
30
31#elif defined(Q_OS_WIN)
32# include "qautoresetevent_win32_p.h"
33
34QT_BEGIN_NAMESPACE
35namespace QtPrivate {
36using QAutoResetEvent = QAutoResetEventWin32;
37} // namespace QtPrivate
38QT_END_NAMESPACE
39
40#elif defined(Q_OS_APPLE)
41# include "qautoresetevent_kqueue_p.h"
42
43QT_BEGIN_NAMESPACE
44namespace QtPrivate {
45using QAutoResetEvent = QAutoResetEventKQueue;
46} // namespace QtPrivate
47QT_END_NAMESPACE
48
49#else
51
53namespace QtPrivate {
55} // namespace QtPrivate
56QT_END_NAMESPACE
57
58#endif
59
60#endif // QAUTORESETEVENT_P_H
Combined button and popup list for selecting options.