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
QThreadPoolPrivate::QueuePage Struct Reference

#include <qthreadpool_p.h>

Collaboration diagram for QThreadPoolPrivate::QueuePage:

Public Types

enum  { MaxPageSize = 256 }

Public Member Functions

 QueuePage (QRunnable *runnable, int pri)
bool isFull ()
bool isFinished ()
void push (QRunnable *runnable)
void skipToNextOrEnd ()
QRunnable * first ()
QRunnable * pop ()
bool tryTake (QRunnable *runnable)
int priority () const

Detailed Description

Definition at line 39 of file qthreadpool_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MaxPageSize 

Definition at line 41 of file qthreadpool_p.h.

Constructor & Destructor Documentation

◆ QueuePage()

QThreadPoolPrivate::QueuePage::QueuePage ( QRunnable * runnable,
int pri )
inline

Definition at line 45 of file qthreadpool_p.h.

Member Function Documentation

◆ first()

QRunnable * QThreadPoolPrivate::QueuePage::first ( )
inline

Definition at line 66 of file qthreadpool_p.h.

References isFinished().

Here is the call graph for this function:

◆ isFinished()

bool QThreadPoolPrivate::QueuePage::isFinished ( )
inline

Definition at line 49 of file qthreadpool_p.h.

Referenced by first(), pop(), QThreadPoolThread::run(), tryTake(), and QThreadPoolPrivate::tryToStartMoreThreads().

Here is the caller graph for this function:

◆ isFull()

bool QThreadPoolPrivate::QueuePage::isFull ( )
inline

Definition at line 47 of file qthreadpool_p.h.

References MaxPageSize.

Referenced by push().

Here is the caller graph for this function:

◆ pop()

QRunnable * QThreadPoolPrivate::QueuePage::pop ( )
inline

Definition at line 74 of file qthreadpool_p.h.

References isFinished(), and skipToNextOrEnd().

Here is the call graph for this function:

◆ priority()

int QThreadPoolPrivate::QueuePage::priority ( ) const
inline

Definition at line 106 of file qthreadpool_p.h.

Referenced by comparePriority().

Here is the caller graph for this function:

◆ push()

void QThreadPoolPrivate::QueuePage::push ( QRunnable * runnable)
inline

Definition at line 51 of file qthreadpool_p.h.

References isFull().

Here is the call graph for this function:

◆ skipToNextOrEnd()

void QThreadPoolPrivate::QueuePage::skipToNextOrEnd ( )
inline

Definition at line 59 of file qthreadpool_p.h.

Referenced by pop(), and tryTake().

Here is the caller graph for this function:

◆ tryTake()

bool QThreadPoolPrivate::QueuePage::tryTake ( QRunnable * runnable)
inline

Definition at line 90 of file qthreadpool_p.h.

References isFinished(), and skipToNextOrEnd().

Here is the call graph for this function:

The documentation for this struct was generated from the following file: