blob: c33b34594bb3b41df8a2d8fef270de8c27eac6e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
/*!
\class QtPrivate::RefCount
\inmodule QtCore
\internal
QRefCount implements atomic ref counting for Qt's shared classes. It behaves very similar
to QAtomicInt, but ignores negative ref counts.
This can be used to allow to implement e.g. const read-only QStringData objects. QString::shared_null and
the qs(...) macro make use of this feature.
*/
|