Qore Programming Language - C/C++ Library 2.0.0
Loading...
Searching...
No Matches
QoreThreadLocalStorage< T > Class Template Reference

provides access to thread-local storage More...

#include <QoreThreadLocalStorage.h>

Public Member Functions

DLLLOCAL QoreThreadLocalStorage ()
 creates the key
 
DLLLOCAL ~QoreThreadLocalStorage ()
 destroys the key
 
DLLLOCAL void create ()
 creates the key
 
DLLLOCAL void destroy ()
 destroys the key
 
DLLLOCAL T * get ()
 retrieves the key's value
 
DLLLOCAL void set (T *ptr)
 sets the key's value
 

Detailed Description

template<typename T>
class QoreThreadLocalStorage< T >

provides access to thread-local storage

This classes uses a single static pthread_key_t and a map to the actual data. It does not provide any special logic for checking for correct usage, etc


The documentation for this class was generated from the following file: