Nebula
|
#include <osxthreadlocalptr.h>
GCC doesn't implement the __thread modifier on OSX.
Instead we use pthread keys to emulate the behaviour.
(C) 2010 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
Instead we use pthread keys to emulate the behaviour.
(C) 2010 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
Public Member Functions | |
OSXThreadLocalPtr () | |
default constructor | |
~OSXThreadLocalPtr () | |
destructor | |
void | set (TYPE *p) |
set content | |
TYPE * | get () const |
get content | |
bool | isvalid () const |
test if content is valid | |
OSXThreadLocalPtr () | |
default constructor | |
~OSXThreadLocalPtr () | |
destructor | |
void | set (TYPE *p) |
set content | |
TYPE * | get () const |
get content | |
bool | isvalid () const |
test if content is valid | |
Private Attributes | |
pthread_key_t | key |
OSX::OSXThreadLocalPtr< TYPE >::OSXThreadLocalPtr | ( | ) |
default constructor
OSX::OSXThreadLocalPtr< TYPE >::~OSXThreadLocalPtr | ( | ) |
destructor
OSX::OSXThreadLocalPtr< TYPE >::OSXThreadLocalPtr | ( | ) |
default constructor
OSX::OSXThreadLocalPtr< TYPE >::~OSXThreadLocalPtr | ( | ) |
destructor
TYPE * OSX::OSXThreadLocalPtr< TYPE >::get | ( | ) | const |
get content
TYPE * OSX::OSXThreadLocalPtr< TYPE >::get | ( | ) | const |
get content
bool OSX::OSXThreadLocalPtr< TYPE >::isvalid | ( | ) | const |
test if content is valid
bool OSX::OSXThreadLocalPtr< TYPE >::isvalid | ( | ) | const |
test if content is valid
void OSX::OSXThreadLocalPtr< TYPE >::set | ( | TYPE * | p | ) |
set content
void OSX::OSXThreadLocalPtr< TYPE >::set | ( | TYPE * | p | ) |
set content
|
private |