Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QThreadData Class Reference

#include <qthread_p.h>

+ Collaboration diagram for QThreadData:

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
 
bool quitNow
 
bool canWait
 
bool isAdopted
 
bool requiresCoreApplication
 

Detailed Description

Definition at line 302 of file qthread_p.h.

Constructor & Destructor Documentation

◆ QThreadData()

QThreadData::QThreadData ( int initialRefCount = 1)

Definition at line 43 of file qthread.cpp.

References QThreadData(), canWait, isAdopted, loopLevel, quitNow, requiresCoreApplication, and scopeLevel.

Referenced by QThreadData().

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

◆ ~QThreadData()

QThreadData::~QThreadData ( )

Definition at line 51 of file qthread.cpp.

References clearCurrentThreadData().

+ Here is the call graph for this function:

Member Function Documentation

◆ canWaitLocked()

bool QThreadData::canWaitLocked ( )
inline

Definition at line 327 of file qthread_p.h.

References canWait.

◆ clearCurrentThreadData()

void QThreadData::clearCurrentThreadData ( )
static

Definition at line 1135 of file qthread.cpp.

Referenced by ~QThreadData().

+ Here is the caller graph for this function:

◆ createEventDispatcher()

QAbstractEventDispatcher * QThreadData::createEventDispatcher ( )

Definition at line 108 of file qthread.cpp.

References QThreadPrivate::createEventDispatcher().

Referenced by ensureEventDispatcher().

+ 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 1117 of file qthread.cpp.

◆ deref()

void QThreadData::deref ( )

Definition at line 100 of file qthread.cpp.

◆ ensureEventDispatcher()

QAbstractEventDispatcher * QThreadData::ensureEventDispatcher ( )
inline

Definition at line 319 of file qthread_p.h.

References createEventDispatcher().

+ Here is the call graph for this function:

◆ get2()

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

Definition at line 310 of file qthread_p.h.

◆ hasEventDispatcher()

bool QThreadData::hasEventDispatcher ( ) const
inline

Definition at line 316 of file qthread_p.h.

◆ ref()

void QThreadData::ref ( )

Definition at line 92 of file qthread.cpp.

Member Data Documentation

◆ canWait

bool QThreadData::canWait

Definition at line 348 of file qthread_p.h.

Referenced by QThreadData(), and canWaitLocked().

◆ eventDispatcher

QAtomicPointer<QAbstractEventDispatcher> QThreadData::eventDispatcher

Definition at line 344 of file qthread_p.h.

◆ eventLoops

QStack<QEventLoop *> QThreadData::eventLoops

Definition at line 340 of file qthread_p.h.

◆ isAdopted

bool QThreadData::isAdopted

Definition at line 349 of file qthread_p.h.

Referenced by QThreadData().

◆ loopLevel

int QThreadData::loopLevel

Definition at line 337 of file qthread_p.h.

Referenced by QThreadData().

◆ postEventList

QPostEventList QThreadData::postEventList

Definition at line 341 of file qthread_p.h.

◆ quitNow

bool QThreadData::quitNow

Definition at line 347 of file qthread_p.h.

Referenced by QThreadData().

◆ requiresCoreApplication

bool QThreadData::requiresCoreApplication

Definition at line 350 of file qthread_p.h.

Referenced by QThreadData().

◆ scopeLevel

◆ thread

QAtomicPointer<QThread> QThreadData::thread

Definition at line 342 of file qthread_p.h.

◆ threadId

QAtomicPointer<void> QThreadData::threadId

Definition at line 343 of file qthread_p.h.

◆ tls

QList<void *> QThreadData::tls

Definition at line 345 of file qthread_p.h.


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