Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qwaitcondition_unix.cpp File Reference
#include "qwaitcondition.h"
#include "qatomic.h"
#include "qdeadlinetimer.h"
#include "qelapsedtimer.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 72 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 55 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 49 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 24 of file qwaitcondition_unix.cpp.

Referenced by qt_initialize_pthread_cond().