QtCore/qthread.h Source File
Go to the documentation of this file.
63 static QThread *currentThread();
64 static int idealThreadCount();
65 static void yieldCurrentThread();
84 void setPriority(Priority priority);
85 Priority priority()
const;
87 bool isFinished()
const;
88 bool isRunning()
const;
90 void setStackSize(uint stackSize);
91 uint stackSize()
const;
93 void exit(
int retcode = 0);
96 void start(Priority = InheritPriority);
102 bool wait(
unsigned long time = ULONG_MAX);
113 static void setTerminationEnabled(
bool enabled =
true);
115 static void sleep(
unsigned long);
116 static void msleep(
unsigned long);
117 static void usleep(
unsigned long);
121 inline QT3_SUPPORT
bool finished()
const {
return isFinished(); }
122 inline QT3_SUPPORT
bool running()
const {
return isRunning(); }
132 static
void initialize();
133 static
void cleanup();
136 friend class QThreadData;
139 #else // QT_NO_THREAD
145 static QThread* currentThread();
154 friend class QCoreApplication;
155 friend class QThreadData;
156 friend class QAdoptedThread;
160 #endif // QT_NO_THREAD
#define QT_BEGIN_NAMESPACE
QFuture< T > run(T(*functionPointer)())