OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
Static class allowing to set/get thread local storage (TLS) values for a given unique key. More...
#include <types.hpp>
Public Types | |
typedef POCI_THREADKEYDEST | ThreadKeyFreeProc |
Thread Key callback for freeing resources. | |
Static Public Member Functions | |
static void | Create (const ostring &name, ThreadKeyFreeProc freeProc=nullptr) |
Create a thread key object. | |
static void | SetValue (const ostring &name, AnyPointer value) |
Set a thread key value. | |
static AnyPointer | GetValue (const ostring &name) |
Get a thread key value. | |
Static class allowing to set/get thread local storage (TLS) values for a given unique key.
This class wraps the OCILIB object handle OCI_ThreadKey and its related methods
|
inlinestatic |
Create a thread key object.
Definition at line 28 of file ThreadKey.hpp.
References ocilib::core::Check(), and OCI_ThreadKeyCreate().
|
inlinestatic |
Set a thread key value.
name | - Thread key name |
value | - user value to set |
Definition at line 33 of file ThreadKey.hpp.
References ocilib::core::Check(), and OCI_ThreadKeySetValue().
|
inlinestatic |
Get a thread key value.
name | - Thread key name |
Definition at line 38 of file ThreadKey.hpp.
References ocilib::core::Check(), and OCI_ThreadKeyGetValue().