Qt 4.8
|
#include "qthread.h"
#include "qthread_p.h"
#include "qthreadstorage.h"
#include "qmutex.h"
#include <qcoreapplication.h>
#include <qpointer.h>
#include <private/qcoreapplication_p.h>
#include <private/qeventdispatcher_win_p.h>
#include <qt_windows.h>
#include "qfunctions_wince.h"
Go to the source code of this file.
Macros | |
#define | _WIN32_WINNT 0x0400 |
Functions | |
DWORD WINAPI | qt_adopted_thread_watcher_function (LPVOID) |
This function loops and waits for native adopted threads to finish. More... | |
void | qt_create_tls () |
Initializes the QThread system. More... | |
static void | qt_free_tls () |
void | qt_watch_adopted_thread (const HANDLE adoptedThreadHandle, QThread *qthread) |
Adds an adopted thread to the list of threads that Qt watches to make sure the thread data is properly cleaned up. More... | |
Variables | |
static QVector< QThread * > | qt_adopted_qthreads |
static QVector< HANDLE > | qt_adopted_thread_handles |
static HANDLE | qt_adopted_thread_wakeup = 0 |
static DWORD | qt_adopted_thread_watcher_id = 0 |
static QMutex | qt_adopted_thread_watcher_mutex |
static DWORD | qt_current_thread_data_tls_index = TLS_OUT_OF_INDEXES |
#define _WIN32_WINNT 0x0400 |
Definition at line 44 of file qthread_win.cpp.
DWORD WINAPI qt_adopted_thread_watcher_function | ( | LPVOID | ) |
This function loops and waits for native adopted threads to finish.
When this happens it derefs the QThreadData for the adopted thread to make sure it gets cleaned up properly.
Definition at line 211 of file qthread_win.cpp.
Referenced by qt_watch_adopted_thread().
void qt_create_tls | ( | ) |
Initializes the QThread system.
Definition at line 78 of file qthread_win.cpp.
Referenced by QThread::initialize(), qt_adopted_thread_watcher_function(), and qt_free_tls().
|
static |
Definition at line 87 of file qthread_win.cpp.
void qt_watch_adopted_thread | ( | const HANDLE | adoptedThreadHandle, |
QThread * | qthread | ||
) |
Adds an adopted thread to the list of threads that Qt watches to make sure the thread data is properly cleaned up.
Definition at line 176 of file qthread_win.cpp.
Referenced by qt_free_tls().
Definition at line 163 of file qthread_win.cpp.
|
static |
Definition at line 162 of file qthread_win.cpp.
Referenced by qt_adopted_thread_watcher_function().
|
static |
Definition at line 166 of file qthread_win.cpp.
Referenced by qt_watch_adopted_thread().
|
static |
Definition at line 165 of file qthread_win.cpp.
Referenced by qt_adopted_thread_watcher_function(), and qt_watch_adopted_thread().
|
static |
Definition at line 164 of file qthread_win.cpp.
|
static |
Definition at line 77 of file qthread_win.cpp.
Referenced by qt_adopted_thread_watcher_function(), qt_create_tls(), and qt_free_tls().