Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 33 of file qthreadpool_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MaxPageSize 

Definition at line 36 of file qthreadpool_p.h.

Constructor & Destructor Documentation

◆ QueuePage()

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

Definition at line 40 of file qthreadpool_p.h.

References push().

+ Here is the call graph for this function:

Member Function Documentation

◆ first()

QRunnable * QueuePage::first ( )
inline

Definition at line 61 of file qthreadpool_p.h.

References isFinished(), and Q_ASSERT.

Referenced by pop().

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

◆ isFinished()

bool QueuePage::isFinished ( )
inline

Definition at line 44 of file qthreadpool_p.h.

Referenced by first(), pop(), skipToNextOrEnd(), and tryTake().

+ Here is the caller graph for this function:

◆ isFull()

bool QueuePage::isFull ( )
inline

Definition at line 42 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 69 of file qthreadpool_p.h.

References first(), isFinished(), Q_ASSERT, and skipToNextOrEnd().

+ Here is the call graph for this function:

◆ priority()

int QueuePage::priority ( ) const
inline

Definition at line 101 of file qthreadpool_p.h.

◆ push()

void QueuePage::push ( QRunnable * runnable)
inline

Definition at line 46 of file qthreadpool_p.h.

References isFull(), and Q_ASSERT.

Referenced by QueuePage().

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

◆ skipToNextOrEnd()

void QueuePage::skipToNextOrEnd ( )
inline

Definition at line 54 of file qthreadpool_p.h.

References isFinished().

Referenced by pop(), and tryTake().

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

◆ tryTake()

bool QueuePage::tryTake ( QRunnable * runnable)
inline

Definition at line 85 of file qthreadpool_p.h.

References i, isFinished(), Q_ASSERT, and skipToNextOrEnd().

+ Here is the call graph for this function:

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