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
QueuePage Class Reference

#include <qthreadpool_p.h>

Collaboration diagram for QueuePage:

Public Types

enum  { MaxPageSize = 256 }

Public Member Functions

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

Detailed Description

Definition at line 32 of file qthreadpool_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MaxPageSize 

Definition at line 35 of file qthreadpool_p.h.

Constructor & Destructor Documentation

◆ QueuePage()

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

Definition at line 39 of file qthreadpool_p.h.

Member Function Documentation

◆ first()

QRunnable * QueuePage::first ( )
inline

Definition at line 60 of file qthreadpool_p.h.

References isFinished().

Here is the call graph for this function:

◆ isFinished()

bool QueuePage::isFinished ( )
inline

Definition at line 43 of file qthreadpool_p.h.

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

Here is the caller graph for this function:

◆ isFull()

bool QueuePage::isFull ( )
inline

Definition at line 41 of file qthreadpool_p.h.

References MaxPageSize.

Referenced by push().

Here is the caller graph for this function:

◆ pop()

QRunnable * QueuePage::pop ( )
inline

Definition at line 68 of file qthreadpool_p.h.

References isFinished(), and skipToNextOrEnd().

Here is the call graph for this function:

◆ priority()

int QueuePage::priority ( ) const
inline

Definition at line 100 of file qthreadpool_p.h.

Referenced by comparePriority().

Here is the caller graph for this function:

◆ push()

void QueuePage::push ( QRunnable * runnable)
inline

Definition at line 45 of file qthreadpool_p.h.

References isFull().

Here is the call graph for this function:

◆ skipToNextOrEnd()

void QueuePage::skipToNextOrEnd ( )
inline

Definition at line 53 of file qthreadpool_p.h.

Referenced by pop(), and tryTake().

Here is the caller graph for this function:

◆ tryTake()

bool QueuePage::tryTake ( QRunnable * runnable)
inline

Definition at line 84 of file qthreadpool_p.h.

References isFinished(), and skipToNextOrEnd().

Here is the call graph for this function:

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