Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
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 80 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(), freeQueue, QList< T >::isEmpty(), QMutex::lock(), mtx, other(), queue, QList< T >::removeAll(), ret, and QMutex::unlock().
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(), and QMutex::unlock().
|
inline |
Definition at line 95 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, QDeadlineTimer::hasExpired(), QDeadlineTimer::isForever(), and QDeadlineTimer::remainingTime().
|
inline |
Definition at line 88 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 84 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 83 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 85 of file qwaitcondition_unix.cpp.
Referenced by wait().
int QWaitConditionPrivate::wakeups |
Definition at line 86 of file qwaitcondition_unix.cpp.
Referenced by wait().