Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qatomicwait.cpp File Reference

(a795b442638f35faab15c1b6d06d268948865f56)

#include "qatomicwait_p.h"
#include <qendian.h>
#include "qfutex_p.h"
#include "qwaitcondition_p.h"
#include <array>
#include <condition_variable>
#include <mutex>
Include dependency graph for qatomicwait.cpp:

Go to the source code of this file.

Classes

struct  QT_BEGIN_NAMESPACE::QAtomicWaitLocks
struct  QT_BEGIN_NAMESPACE::QAtomicWaitLocks::Lock

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.

Functions

static void checkFutexUse ()
static QAtomicWaitLocks & atomicLocks () noexcept
template<typename T>
static bool isEqual (const void *address, const void *old)
static bool isEqual (const void *address, const void *old, qsizetype size) noexcept

Function Documentation

◆ atomicLocks()

QAtomicWaitLocks & atomicLocks ( )
staticnoexcept

Definition at line 112 of file qatomicwait.cpp.

References checkFutexUse().

Referenced by QtPrivate::_q_atomicWait(), and QtPrivate::_q_atomicWake().

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

◆ checkFutexUse()

void checkFutexUse ( )
inlinestatic

Definition at line 101 of file qatomicwait.cpp.

References QtDummyFutex::futexAvailable().

Referenced by atomicLocks().

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

◆ isEqual() [1/2]

template<typename T>
bool isEqual ( const void * address,
const void * old )
static

Definition at line 120 of file qatomicwait.cpp.

◆ isEqual() [2/2]

bool isEqual ( const void * address,
const void * old,
qsizetype size )
staticnoexcept

Definition at line 127 of file qatomicwait.cpp.