Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
androiddeadlockprotector.h
Go to the documentation of this file.
1// Copyright (C) 2016 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#ifndef ANDROID_DEADLOCKPROTECTOR_H
5#define ANDROID_DEADLOCKPROTECTOR_H
6
7#include <QtCore/private/qjnihelpers_p.h>
8
10
12{
13public:
15 if (m_acquired)
17 }
18
19 bool acquire() {
21 return m_acquired;
22 }
23
24private:
25 bool m_acquired = false;
26};
27
29
30#endif // ANDROID_DEADLOCKPROTECTOR_H
31
Combined button and popup list for selecting options.
Q_CORE_EXPORT bool acquireAndroidDeadlockProtector()
Q_CORE_EXPORT void releaseAndroidDeadlockProtector()