QtBase  v6.3.1
Classes | Functions | Variables
tst_bench_qwaitcondition.cpp File Reference
#include <QtCore/QtCore>
#include <QTest>
#include <math.h>
#include <condition_variable>
#include <mutex>
#include <limits.h>
#include "tst_bench_qwaitcondition.moc"
Include dependency graph for tst_bench_qwaitcondition.cpp:

Go to the source code of this file.

Classes

class  tst_QWaitCondition
 
class  OscillateThread< Cond, Mutex, Locker >
 
class  OscillateThread< QWaitCondition, Mutex, Locker >
 

Functions

template<typename Cond >
Cond * get ()
 
template<>
std::condition_variable * get ()
 
template<class Cond , class Mutex , class Locker >
void oscillate (unsigned long timeout)
 

Variables

int turn
 
const int threadCount = 10
 
QWaitCondition cond
 
std::condition_variable cv
 
std::condition_variable_any cva
 

Function Documentation

◆ get() [1/2]

template<typename Cond >
Cond* get ( )

Definition at line 75 of file tst_bench_qwaitcondition.cpp.

◆ get() [2/2]

template<>
std::condition_variable_any * get ( )

Definition at line 75 of file tst_bench_qwaitcondition.cpp.

◆ oscillate()

template<class Cond , class Mutex , class Locker >
void oscillate ( unsigned long  timeout)

Definition at line 127 of file tst_bench_qwaitcondition.cpp.

Here is the call graph for this function:

Variable Documentation

◆ cond

Definition at line 68 of file tst_bench_qwaitcondition.cpp.

◆ cv

std::condition_variable cv

Definition at line 69 of file tst_bench_qwaitcondition.cpp.

◆ cva

std::condition_variable_any cva

Definition at line 70 of file tst_bench_qwaitcondition.cpp.

◆ threadCount

const int threadCount = 10

Definition at line 67 of file tst_bench_qwaitcondition.cpp.

◆ turn

int turn

Definition at line 66 of file tst_bench_qwaitcondition.cpp.