![]() |
Qt 6.x
The Qt SDK
|
#include <QCache>
#include <QMutex>
#include <QThreadStorage>
Go to the source code of this file.
Classes | |
class | Counter |
[0] More... | |
Macros | |
#define | Counter ReentrantCounter |
#define | Counter ThreadSafeCounter |
Typedefs | |
typedef int | SomeClass |
Functions | |
void | cacheObject (const QString &key, SomeClass *object) |
[7] //! [8] | |
void | removeFromCache (const QString &key) |
[8] //! [9] | |
int | main () |
[9] | |
Variables | |
QThreadStorage< QCache< QString, SomeClass > > | caches |
[7] | |
#define Counter ReentrantCounter |
Definition at line 8 of file threads.cpp.
#define Counter ThreadSafeCounter |
Definition at line 8 of file threads.cpp.
typedef int SomeClass |
Definition at line 40 of file threads.cpp.
int main | ( | ) |
[9]
Definition at line 61 of file threads.cpp.
QThreadStorage<QCache<QString, SomeClass> > caches |
[7]
Definition at line 43 of file threads.cpp.
Referenced by QQuickShapeGradientCache::cacheForRhi(), cacheObject(), QFontEngine::glyphCache(), removeFromCache(), and QFontEngine::setGlyphCache().