Qt 4.8
Functions
qthread.cpp File Reference
#include "qthread.h"
#include "qthreadstorage.h"
#include "qmutex.h"
#include "qmutexpool_p.h"
#include "qreadwritelock.h"
#include "qabstracteventdispatcher.h"
#include <qeventloop.h>
#include <qhash.h>
#include "qthread_p.h"
#include "private/qcoreapplication_p.h"

Go to the source code of this file.

Functions

void qt_create_tls ()
 Initializes the QThread system. More...
 

Function Documentation

◆ qt_create_tls()

void qt_create_tls ( )

Initializes the QThread system.

Warning
This function is not part of the public interface.

Definition at line 78 of file qthread_win.cpp.

Referenced by QThread::initialize(), qt_adopted_thread_watcher_function(), and qt_free_tls().

79 {
81  return;
82  static QMutex mutex;
83  QMutexLocker locker(&mutex);
85 }
The QMutex class provides access serialization between threads.
Definition: qmutex.h:60
static DWORD qt_current_thread_data_tls_index
Definition: qthread_win.cpp:77
#define TLS_OUT_OF_INDEXES
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101