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
QAbstractEventDispatcher * createEventDispatcher ()
QAbstractEventDispatcher * ensureEventDispatcher ()
bool canWaitLocked ()
void clearEvents ()
void reuseBindingStatusForNewNativeThread ()

Static Public Member Functions

static QThreadData * current ()
static Q_DECL_PURE_FUNCTION Q_AUTOTEST_EXPORT QThreadData * currentThreadData () noexcept
static void clearCurrentThreadData ()
static QThreadData * get2 (QThread *thread)

Public Attributes

QStack< QEventLoop * > eventLoops
QPostEventList postEventList
QAtomicPointer< QThread > thread
QAtomicPointer< void > threadId
QAtomicPointer< QAbstractEventDispatcher > eventDispatcher
QList< void * > tls
QtPrivate::BindingStatusOrList m_statusOrPendingObjects = {}
int loopLevel = 0
int scopeLevel = 0
bool quitNow = false
bool canWait = true
bool isAdopted = false
bool requiresCoreApplication = true

Friends

class QAbstractEventDispatcher
class QBasicTimer

Detailed Description

Definition at line 311 of file qthread_p.h.

Constructor & Destructor Documentation

◆ QThreadData()

QThreadData::QThreadData ( int initialRefCount = 1)
inline

Definition at line 314 of file qthread_p.h.

References QThreadData().

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

References clearCurrentThreadData(), and clearEvents().

Here is the call graph for this function:

Member Function Documentation

◆ canWaitLocked()

bool QThreadData::canWaitLocked ( )
inline

Definition at line 359 of file qthread_p.h.

References canWait.

◆ clearCurrentThreadData()

void QThreadData::clearCurrentThreadData ( )
static

Definition at line 1205 of file qthread.cpp.

Referenced by ~QThreadData().

Here is the caller graph for this function:

◆ clearEvents()

void QThreadData::clearEvents ( )

Definition at line 74 of file qthread.cpp.

Referenced by ~QThreadData().

Here is the caller graph for this function:

◆ createEventDispatcher()

QAbstractEventDispatcher * QThreadData::createEventDispatcher ( )

Definition at line 113 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 ( )
inlinestatic

Definition at line 321 of file qthread_p.h.

◆ currentThreadData()

QThreadData * QThreadData::currentThreadData ( )
staticnoexcept

Definition at line 1192 of file qthread.cpp.

◆ deref()

void QThreadData::deref ( )
inline

Definition at line 346 of file qthread_p.h.

Referenced by QAdoptedThread::QAdoptedThread().

Here is the caller graph for this function:

◆ ensureEventDispatcher()

QAbstractEventDispatcher * QThreadData::ensureEventDispatcher ( )
inline

Definition at line 351 of file qthread_p.h.

References createEventDispatcher().

Here is the call graph for this function:

◆ get2()

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

Definition at line 330 of file qthread_p.h.

◆ hasEventDispatcher()

bool QThreadData::hasEventDispatcher ( ) const
inline

Definition at line 348 of file qthread_p.h.

◆ ref()

void QThreadData::ref ( )
inline

Definition at line 345 of file qthread_p.h.

◆ reuseBindingStatusForNewNativeThread()

void QThreadData::reuseBindingStatusForNewNativeThread ( )
inline

Definition at line 367 of file qthread_p.h.

◆ QAbstractEventDispatcher

friend class QAbstractEventDispatcher
friend

Definition at line 396 of file qthread_p.h.

◆ QBasicTimer

friend class QBasicTimer
friend

Definition at line 397 of file qthread_p.h.

Member Data Documentation

◆ canWait

bool QThreadData::canWait = true

Definition at line 391 of file qthread_p.h.

Referenced by canWaitLocked().

◆ eventDispatcher

QAtomicPointer<QAbstractEventDispatcher> QThreadData::eventDispatcher

Definition at line 378 of file qthread_p.h.

◆ eventLoops

QStack<QEventLoop *> QThreadData::eventLoops

Definition at line 374 of file qthread_p.h.

◆ isAdopted

bool QThreadData::isAdopted = false

Definition at line 392 of file qthread_p.h.

Referenced by QAdoptedThread::QAdoptedThread().

◆ loopLevel

int QThreadData::loopLevel = 0

Definition at line 387 of file qthread_p.h.

◆ m_statusOrPendingObjects

QtPrivate::BindingStatusOrList QThreadData::m_statusOrPendingObjects = {}

Definition at line 381 of file qthread_p.h.

◆ postEventList

QPostEventList QThreadData::postEventList

Definition at line 375 of file qthread_p.h.

◆ quitNow

bool QThreadData::quitNow = false

Definition at line 390 of file qthread_p.h.

◆ requiresCoreApplication

bool QThreadData::requiresCoreApplication = true

Definition at line 393 of file qthread_p.h.

◆ scopeLevel

int QThreadData::scopeLevel = 0

◆ thread

QAtomicPointer<QThread> QThreadData::thread

Definition at line 376 of file qthread_p.h.

◆ threadId

QAtomicPointer<void> QThreadData::threadId

Definition at line 377 of file qthread_p.h.

◆ tls

QList<void *> QThreadData::tls

Definition at line 379 of file qthread_p.h.


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