![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
int | wait_relative (QDeadlineTimer deadline) |
bool | wait (QDeadlineTimer deadline) |
QWaitConditionEvent * | pre () |
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 |
Definition at line 81 of file qwaitcondition_unix.cpp.
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.
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.
|
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.
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().
|
inline |
Definition at line 89 of file qwaitcondition_unix.cpp.
References cond, deadline, mutex, and qt_abstime_for_timeout().
Referenced by wait().
pthread_cond_t QWaitConditionPrivate::cond |
Definition at line 85 of file qwaitcondition_unix.cpp.
Referenced by wait(), and wait_relative().
EventQueue QWaitConditionPrivate::freeQueue |
Definition at line 43 of file qwaitcondition_win.cpp.
QMutex QWaitConditionPrivate::mtx |
Definition at line 41 of file qwaitcondition_win.cpp.
pthread_mutex_t QWaitConditionPrivate::mutex |
Definition at line 84 of file qwaitcondition_unix.cpp.
Referenced by wait(), and wait_relative().
EventQueue QWaitConditionPrivate::queue |
Definition at line 42 of file qwaitcondition_win.cpp.
int QWaitConditionPrivate::waiters |
Definition at line 86 of file qwaitcondition_unix.cpp.
Referenced by wait().
int QWaitConditionPrivate::wakeups |
Definition at line 87 of file qwaitcondition_unix.cpp.
Referenced by wait().