#include <qthread.h>

Public Types |
|
| enum | Priority
{ IdlePriority, LowestPriority, LowPriority, NormalPriority, HighPriority, HighestPriority, TimeCriticalPriority, InheritPriority } |
Public Slots |
|
| void | start (Priority=InheritPriority) |
| void | terminate () |
| void | quit () |
Signals |
|
| void | started () |
| void | finished () |
| void | terminated () |
Public Member Functions |
|
| QThread (QObject *parent=0) | |
| ~QThread () | |
| void | setPriority (Priority priority) |
| Priority | priority () const |
| bool | isFinished () const |
| bool | isRunning () const |
| void | setStackSize (uint stackSize) |
| uint | stackSize () const |
| void | exit (int retcode=0) |
| bool | wait (unsigned long time=ULONG_MAX) |
Static Public Member Functions |
|
| static Qt::HANDLE | currentThreadId () |
| static QThread * | currentThread () |
| static int | idealThreadCount () |
| static void | yieldCurrentThread () |
Protected Member Functions |
|
| virtual void | run () |
| int | exec () |
| QThread (QThreadPrivate &dd, QObject *parent=0) | |
Static Protected Member Functions |
|
| static void | setTerminationEnabled (bool enabled=true) |
| static void | sleep (unsigned long) |
| static void | msleep (unsigned long) |
| static void | usleep (unsigned long) |
Friends |
|
| class | QCoreApplication |
| class | QThreadData |
| enum Priority |
| ~QThread | ( | ) |
| static Qt::HANDLE currentThreadId | ( | ) | [static] |
| static QThread* currentThread | ( | ) | [static] |
| static int idealThreadCount | ( | ) | [static] |
| static void yieldCurrentThread | ( | ) | [static] |
| void setPriority | ( | Priority | priority | ) |
| Priority priority | ( | ) | const |
| bool isFinished | ( | ) | const |
| bool isRunning | ( | ) | const |
| void setStackSize | ( | uint | stackSize | ) |
| uint stackSize | ( | ) | const |
| void exit | ( | int | retcode = 0 |
) |
| void start | ( | Priority | = InheritPriority |
) | [slot] |
| void terminate | ( | ) | [slot] |
| void quit | ( | ) | [slot] |
| bool wait | ( | unsigned long | time = ULONG_MAX |
) |
| void started | ( | ) | [signal] |
| void finished | ( | ) | [signal] |
| void terminated | ( | ) | [signal] |
| virtual void run | ( | ) | [protected, virtual] |
| int exec | ( | ) | [protected] |
| static void setTerminationEnabled | ( | bool | enabled = true |
) | [static, protected] |
| static void sleep | ( | unsigned | long | ) | [static, protected] |
| static void msleep | ( | unsigned | long | ) | [static, protected] |
| static void usleep | ( | unsigned | long | ) | [static, protected] |
friend class QCoreApplication
[friend] |
friend class QThreadData
[friend] |