Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qatomic.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// Copyright (C) 2016 Intel Corporation.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#include "
qatomic.h
"
6
410
414
432
437
454
459
476
481
1744
// static checks
1745
#ifndef Q_ATOMIC_INT8_IS_SUPPORTED
1746
# error "Q_ATOMIC_INT8_IS_SUPPORTED must be defined"
1747
#endif
1748
#ifndef Q_ATOMIC_INT16_IS_SUPPORTED
1749
# error "Q_ATOMIC_INT16_IS_SUPPORTED must be defined"
1750
#endif
1751
#ifndef Q_ATOMIC_INT32_IS_SUPPORTED
1752
# error "Q_ATOMIC_INT32_IS_SUPPORTED must be defined"
1753
#endif
1754
#if !defined(Q_ATOMIC_INT64_IS_SUPPORTED) && QT_POINTER_SIZE == 8
1755
// 64-bit platform
1756
# error "Q_ATOMIC_INT64_IS_SUPPORTED must be defined on a 64-bit platform"
1757
#endif
1758
1759
QT_BEGIN_NAMESPACE
1760
1761
// The following specializations must always be defined
1762
static_assert
(
sizeof
(
QAtomicInteger<unsigned>
));
1763
static_assert
(
sizeof
(
QAtomicInteger<long>
));
1764
static_assert
(
sizeof
(
QAtomicInteger<unsigned long>
));
1765
static_assert
(
sizeof
(
QAtomicInteger<quintptr>
));
1766
static_assert
(
sizeof
(
QAtomicInteger<qptrdiff>
));
1767
static_assert
(
sizeof
(
QAtomicInteger<char32_t>
));
1768
1769
static_assert
(
sizeof
(
QAtomicInteger<short>
));
1770
static_assert
(
sizeof
(
QAtomicInteger<unsigned short>
));
1771
static_assert
(
sizeof
(
QAtomicInteger<wchar_t>
));
1772
static_assert
(
sizeof
(
QAtomicInteger<char16_t>
));
1773
1774
static_assert
(
sizeof
(
QAtomicInteger<char>
));
1775
static_assert
(
sizeof
(
QAtomicInteger<unsigned char>
));
1776
static_assert
(
sizeof
(
QAtomicInteger<signed char>
));
1777
static_assert
(
sizeof
(
QAtomicInteger<bool>
));
1778
1779
#ifdef Q_ATOMIC_INT64_IS_SUPPORTED
1780
static_assert
(
sizeof
(
QAtomicInteger<qint64>
));
1781
static_assert
(
sizeof
(
QAtomicInteger<quint64>
));
1782
#endif
1783
1784
QT_END_NAMESPACE
QAtomicInteger
\inmodule QtCore
Definition
qatomic.h:18
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qatomic.h
qtbase
src
corelib
thread
qatomic.cpp
Generated by
1.9.7