45 #include <QtCore/qobject.h> 63 static QThread *currentThread();
64 static int idealThreadCount();
65 static void yieldCurrentThread();
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();
139 #else // QT_NO_THREAD 145 static QThread* currentThread();
160 #endif // QT_NO_THREAD #define QT_END_NAMESPACE
This macro expands to.
The QObject class is the base class of all Qt objects.
Priority
This enum type indicates how the operating system should schedule newly created threads.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QCoreApplication class provides an event loop for console Qt applications.
QFuture< T > run(Function function,...)
#define Q_DECLARE_PRIVATE(Class)
The QThread class provides a platform-independent way to manage threads.