Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
9
QT_BEGIN_NAMESPACE
10
11
class
AndroidDeadlockProtector
12
{
13
public
:
14
~AndroidDeadlockProtector
() {
15
if
(m_acquired)
16
QtAndroidPrivate::releaseAndroidDeadlockProtector
();
17
}
18
19
bool
acquire
() {
20
m_acquired =
QtAndroidPrivate::acquireAndroidDeadlockProtector
();
21
return
m_acquired;
22
}
23
24
private
:
25
bool
m_acquired =
false
;
26
};
27
28
QT_END_NAMESPACE
29
30
#endif
// ANDROID_DEADLOCKPROTECTOR_H
31
AndroidDeadlockProtector
Definition
androiddeadlockprotector.h:12
AndroidDeadlockProtector::acquire
bool acquire()
Definition
androiddeadlockprotector.h:19
AndroidDeadlockProtector::~AndroidDeadlockProtector
~AndroidDeadlockProtector()
Definition
androiddeadlockprotector.h:14
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QtAndroidPrivate::acquireAndroidDeadlockProtector
Q_CORE_EXPORT bool acquireAndroidDeadlockProtector()
Definition
qjnihelpers.cpp:341
QtAndroidPrivate::releaseAndroidDeadlockProtector
Q_CORE_EXPORT void releaseAndroidDeadlockProtector()
Definition
qjnihelpers.cpp:346
qtbase
src
plugins
platforms
android
androiddeadlockprotector.h
Generated by
1.10.0