#include <threadlocal.h>

Public Member Functions | |
| template<typename... Arg> | |
| XThreadLocal (Arg &&...arg) | |
| T & | operator* () const |
| T * | operator-> () const |
| T & | operator* () const |
| T * | operator-> () const |
Static Private Member Functions | |
| static void | delete_tls (void *var) |
Private Attributes | |
| QThreadStorage< T * > | m_tls |
| pthread_key_t | m_key |
Static Private Attributes | |
| static T thread_local | m_var |
Thread Local Storage template. T must have constructor T() object T will be deleted only when the thread is finished.
Definition at line 32 of file threadlocal.h.
|
inline |
Definition at line 37 of file threadlocal.h.
|
inline |
|
inline |
Definition at line 39 of file threadlocal.h.
|
inline |
1.8.3