QtBase  v6.3.1
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QThreadData Class Reference

#include <qthread_p.h>

Collaboration diagram for QThreadData:
Collaboration graph
[legend]

Classes

class  FlaggedDebugSignatures
 

Public Member Functions

 QThreadData (int initialRefCount=1)
 
 ~QThreadData ()
 
void ref ()
 
void deref ()
 
bool hasEventDispatcher () const
 
QAbstractEventDispatchercreateEventDispatcher ()
 
QAbstractEventDispatcherensureEventDispatcher ()
 
bool canWaitLocked ()
 

Static Public Member Functions

static Q_AUTOTEST_EXPORT QThreadDatacurrent (bool createIfNecessary=true)
 
static void clearCurrentThreadData ()
 
static QThreadDataget2 (QThread *thread)
 

Public Attributes

int loopLevel
 
int scopeLevel
 
QStack< QEventLoop * > eventLoops
 
QPostEventList postEventList
 
QAtomicPointer< QThreadthread
 
QAtomicPointer< voidthreadId
 
QAtomicPointer< QAbstractEventDispatchereventDispatcher
 
QList< void * > tls
 
FlaggedDebugSignatures flaggedSignatures
 
bool quitNow
 
bool canWait
 
bool isAdopted
 
bool requiresCoreApplication
 

Detailed Description

Definition at line 236 of file qthread_p.h.

Constructor & Destructor Documentation

◆ QThreadData()

QT_BEGIN_NAMESPACE QThreadData::QThreadData ( int  initialRefCount = 1)

Definition at line 60 of file qthread.cpp.

Here is the caller graph for this function:

◆ ~QThreadData()

QThreadData::~QThreadData ( )

Definition at line 68 of file qthread.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ canWaitLocked()

bool QThreadData::canWaitLocked ( )
inline

Definition at line 261 of file qthread_p.h.

◆ clearCurrentThreadData()

void QThreadData::clearCurrentThreadData ( )
static

Definition at line 922 of file qthread.cpp.

Here is the caller graph for this function:

◆ createEventDispatcher()

QAbstractEventDispatcher * QThreadData::createEventDispatcher ( )

Definition at line 124 of file qthread.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ current()

QThreadData * QThreadData::current ( bool  createIfNecessary = true)
static

Definition at line 908 of file qthread.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deref()

void QThreadData::deref ( )

Definition at line 116 of file qthread.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ensureEventDispatcher()

QAbstractEventDispatcher* QThreadData::ensureEventDispatcher ( )
inline

Definition at line 253 of file qthread_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get2()

static QThreadData* QThreadData::get2 ( QThread thread)
inlinestatic

Definition at line 244 of file qthread_p.h.

Here is the caller graph for this function:

◆ hasEventDispatcher()

bool QThreadData::hasEventDispatcher ( ) const
inline

Definition at line 250 of file qthread_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ref()

void QThreadData::ref ( )

Definition at line 108 of file qthread.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ canWait

bool QThreadData::canWait

Definition at line 303 of file qthread_p.h.

◆ eventDispatcher

QAtomicPointer<QAbstractEventDispatcher> QThreadData::eventDispatcher

Definition at line 298 of file qthread_p.h.

◆ eventLoops

QStack<QEventLoop *> QThreadData::eventLoops

Definition at line 294 of file qthread_p.h.

◆ flaggedSignatures

FlaggedDebugSignatures QThreadData::flaggedSignatures

Definition at line 300 of file qthread_p.h.

◆ isAdopted

bool QThreadData::isAdopted

Definition at line 304 of file qthread_p.h.

◆ loopLevel

int QThreadData::loopLevel

Definition at line 291 of file qthread_p.h.

◆ postEventList

QPostEventList QThreadData::postEventList

Definition at line 295 of file qthread_p.h.

◆ quitNow

bool QThreadData::quitNow

Definition at line 302 of file qthread_p.h.

◆ requiresCoreApplication

bool QThreadData::requiresCoreApplication

Definition at line 305 of file qthread_p.h.

◆ scopeLevel

int QThreadData::scopeLevel

Definition at line 292 of file qthread_p.h.

◆ thread

QAtomicPointer<QThread> QThreadData::thread

Definition at line 296 of file qthread_p.h.

◆ threadId

QAtomicPointer<void> QThreadData::threadId

Definition at line 297 of file qthread_p.h.

◆ tls

QList<void *> QThreadData::tls

Definition at line 299 of file qthread_p.h.


The documentation for this class was generated from the following files: