Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWaitConditionPrivate Class Reference
+ Collaboration diagram for QWaitConditionPrivate:

Public Member Functions

int wait_relative (QDeadlineTimer deadline)
 
bool wait (QDeadlineTimer deadline)
 
QWaitConditionEventpre ()
 
bool wait (QWaitConditionEvent *wce, QDeadlineTimer deadline)
 
void post (QWaitConditionEvent *wce, bool ret)
 

Public Attributes

pthread_mutex_t mutex
 
pthread_cond_t cond
 
int waiters
 
int wakeups
 
QMutex mtx
 
EventQueue queue
 
EventQueue freeQueue
 

Detailed Description

Definition at line 81 of file qwaitcondition_unix.cpp.

Member Function Documentation

◆ post()

void QWaitConditionPrivate::post ( QWaitConditionEvent wce,
bool  ret 
)

Definition at line 92 of file qwaitcondition_win.cpp.

References QList< T >::append(), QList< T >::constFirst(), QWaitConditionEvent::event, freeQueue, QList< T >::isEmpty(), QMutex::lock(), mtx, other(), queue, QList< T >::removeAll(), ret, QMutex::unlock(), and QWaitConditionEvent::wokenUp.

+ Here is the call graph for this function:

◆ pre()

QWaitConditionEvent * QWaitConditionPrivate::pre ( )

Definition at line 50 of file qwaitcondition_win.cpp.

References QList< T >::at(), freeQueue, QList< T >::insert(), QList< T >::isEmpty(), QMutex::lock(), mtx, QWaitConditionEvent::priority, queue, QList< T >::size(), QList< T >::takeFirst(), QMutex::unlock(), and QWaitConditionEvent::wokenUp.

+ Here is the call graph for this function:

◆ wait() [1/2]

bool QWaitConditionPrivate::wait ( QDeadlineTimer  deadline)
inline

Definition at line 96 of file qwaitcondition_unix.cpp.

References cond, deadline, forever, QDeadlineTimer::isForever(), mutex, Q_ASSERT_X, qt_report_pthread_error(), wait_relative(), waiters, and wakeups.

+ Here is the call graph for this function:

◆ wait() [2/2]

bool QWaitConditionPrivate::wait ( QWaitConditionEvent wce,
QDeadlineTimer  deadline 
)

Definition at line 71 of file qwaitcondition_win.cpp.

References deadline, QWaitConditionEvent::event, QDeadlineTimer::hasExpired(), QDeadlineTimer::isForever(), and QDeadlineTimer::remainingTime().

+ Here is the call graph for this function:

◆ wait_relative()

int QWaitConditionPrivate::wait_relative ( QDeadlineTimer  deadline)
inline

Definition at line 89 of file qwaitcondition_unix.cpp.

References cond, deadline, mutex, and qt_abstime_for_timeout().

Referenced by wait().

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

Member Data Documentation

◆ cond

pthread_cond_t QWaitConditionPrivate::cond

Definition at line 85 of file qwaitcondition_unix.cpp.

Referenced by wait(), and wait_relative().

◆ freeQueue

EventQueue QWaitConditionPrivate::freeQueue

Definition at line 43 of file qwaitcondition_win.cpp.

Referenced by post(), and pre().

◆ mtx

QMutex QWaitConditionPrivate::mtx

Definition at line 41 of file qwaitcondition_win.cpp.

Referenced by post(), and pre().

◆ mutex

pthread_mutex_t QWaitConditionPrivate::mutex

Definition at line 84 of file qwaitcondition_unix.cpp.

Referenced by wait(), and wait_relative().

◆ queue

EventQueue QWaitConditionPrivate::queue

Definition at line 42 of file qwaitcondition_win.cpp.

Referenced by post(), and pre().

◆ waiters

int QWaitConditionPrivate::waiters

Definition at line 86 of file qwaitcondition_unix.cpp.

Referenced by wait().

◆ wakeups

int QWaitConditionPrivate::wakeups

Definition at line 87 of file qwaitcondition_unix.cpp.

Referenced by wait().


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