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>.
Loading...
Searching...
No Matches
qwaitcondition_unix.cpp File Reference

(b67ebbe3a0b161f4205f722a8c8a051808144439)

#include "qwaitcondition.h"
#include "qatomic.h"
#include "qdeadlinetimer.h"
#include "qmutex.h"
#include "qplatformdefs.h"
#include "qreadwritelock.h"
#include "qstring.h"
#include "private/qcore_unix_p.h"
#include "qreadwritelock_p.h"
#include <errno.h>
#include <sys/time.h>
#include <time.h>
+ Include dependency graph for qwaitcondition_unix.cpp:

Go to the source code of this file.

Classes

class  QWaitConditionPrivate
 

Functions

static void qt_report_pthread_error (int code, const char *where, const char *what)
 
static void qt_initialize_pthread_cond (pthread_cond_t *cond, const char *where)
 
static void qt_abstime_for_timeout (timespec *ts, QDeadlineTimer deadline)
 

Variables

static QT_BEGIN_NAMESPACE constexpr clockid_t SteadyClockClockId
 

Function Documentation

◆ qt_abstime_for_timeout()

static void qt_abstime_for_timeout ( timespec * ts,
QDeadlineTimer deadline )
static

Definition at line 71 of file qwaitcondition_unix.cpp.

References QDeadlineTimer::deadline(), deadline, and durationToTimespec().

Referenced by QWaitConditionPrivate::wait_relative().

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

◆ qt_initialize_pthread_cond()

static void qt_initialize_pthread_cond ( pthread_cond_t * cond,
const char * where )
static

Definition at line 54 of file qwaitcondition_unix.cpp.

References qScopeGuard(), qt_report_pthread_error(), and SteadyClockClockId.

+ Here is the call graph for this function:

◆ qt_report_pthread_error()

static void qt_report_pthread_error ( int code,
const char * where,
const char * what )
static

Definition at line 48 of file qwaitcondition_unix.cpp.

References qErrnoWarning().

Referenced by qt_initialize_pthread_cond(), and QWaitConditionPrivate::wait().

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

Variable Documentation

◆ SteadyClockClockId

QT_BEGIN_NAMESPACE constexpr clockid_t SteadyClockClockId
staticconstexpr
Initial value:
=
CLOCK_REALTIME

Definition at line 23 of file qwaitcondition_unix.cpp.

Referenced by qt_initialize_pthread_cond().