Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtConcurrent::BlockSizeManager Class Reference

\inmodule QtConcurrent More...

#include <qtconcurrentiteratekernel.h>

+ Collaboration diagram for QtConcurrent::BlockSizeManager:

Public Member Functions

 BlockSizeManager (QThreadPool *pool, int iterationCount)
 
void timeBeforeUser ()
 
void timeAfterUser ()
 
int blockSize ()
 

Detailed Description

\inmodule QtConcurrent

Definition at line 31 of file qtconcurrentiteratekernel.h.

Constructor & Destructor Documentation

◆ BlockSizeManager()

QtConcurrent::BlockSizeManager::BlockSizeManager ( QThreadPool pool,
int  iterationCount 
)
explicit

Definition at line 69 of file qtconcurrentiteratekernel.cpp.

Member Function Documentation

◆ blockSize()

int QtConcurrent::BlockSizeManager::blockSize ( )

Definition at line 113 of file qtconcurrentiteratekernel.cpp.

Referenced by QtConcurrent::IterateKernel< Iterator, T >::forThreadFunction().

+ Here is the caller graph for this function:

◆ timeAfterUser()

void QtConcurrent::BlockSizeManager::timeAfterUser ( )

Definition at line 87 of file qtconcurrentiteratekernel.cpp.

References QtConcurrent::Median::addValue(), QThread::currentThread(), elapsed(), getticks(), QtConcurrent::Median::isMedianValid(), QtConcurrent::Median::median(), qDebug, qMin(), QtConcurrent::Median::reset(), and TargetRatio.

Referenced by QtConcurrent::IterateKernel< Iterator, T >::forThreadFunction().

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

◆ timeBeforeUser()

void QtConcurrent::BlockSizeManager::timeBeforeUser ( )

Definition at line 76 of file qtconcurrentiteratekernel.cpp.

References QtConcurrent::Median::addValue(), elapsed(), and getticks().

Referenced by QtConcurrent::IterateKernel< Iterator, T >::forThreadFunction().

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

The documentation for this class was generated from the following files: