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
threads.cpp File Reference

(69d4ecd6ef9057cb3703178277042ff7a7411459)

#include <QCache>
#include <QMutex>
#include <QThreadStorage>
+ Include dependency graph for threads.cpp:

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]
 

Macro Definition Documentation

◆ Counter [1/2]

#define Counter   ReentrantCounter

Definition at line 8 of file threads.cpp.

◆ Counter [2/2]

#define Counter   ThreadSafeCounter

Definition at line 8 of file threads.cpp.

Typedef Documentation

◆ SomeClass

typedef int SomeClass

Definition at line 40 of file threads.cpp.

Function Documentation

◆ cacheObject()

void cacheObject ( const QString & key,
SomeClass * object )

[7] //! [8]

Definition at line 45 of file threads.cpp.

References caches.

◆ main()

int main ( )

[9]

Definition at line 61 of file threads.cpp.

◆ removeFromCache()

void removeFromCache ( const QString & key)

[8] //! [9]

Definition at line 51 of file threads.cpp.

References caches.

Variable Documentation

◆ caches