84 CloseHandle(d->handle);
105 d->handle = CreateThread(NULL,d->
stackSize,
110 qWarning(
"QThread::start: Failed to create thread: errno=%d",
errno);
121 TerminateThread(d->handle, 0);
134 WaitForSingleObject(d->handle,INFINITE);
136 locker.mutex()->lock();
146 CloseHandle(d->handle);
154 GetSystemInfo(&sysinfo);
155 return sysinfo.dwNumberOfProcessors;
static void * start(void *arg)
static void finish(void *arg)
void qWarning(const char *msg,...)
int errno
Contains the last error code.
virtual void terminated()
static int idealThreadCount()