Nebula
Loading...
Searching...
No Matches
linuxthreadlocalptr.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13
14//------------------------------------------------------------------------------
15namespace Linux
16{
18{
19public:
23 void Set(void* ptr);
25 void* Get() const;
27 void Clear();
28
29private:
31};
32
33//------------------------------------------------------------------------------
36inline void
41
42//------------------------------------------------------------------------------
45inline void*
50
51//------------------------------------------------------------------------------
54inline void
59
60} // namespace Linux
61//------------------------------------------------------------------------------
static void * GetPointer(IndexT slot)
get thread local pointer value
Definition linuxthreadlocaldata.cc:89
static void SetPointer(IndexT slot, void *ptr)
set thread local pointer value (must only be called once)
Definition linuxthreadlocaldata.cc:76
static void ClearPointer(IndexT slot)
clear pointer (must only be called after SetPointer)
Definition linuxthreadlocaldata.cc:101
A thread-local pointer class for platforms which don't have proper support for the __thread keyword.
Definition linuxthreadlocalptr.h:18
LinuxThreadLocalPtr()
constructor
Definition linuxthreadlocalptr.cc:15
IndexT slot
Definition linuxthreadlocalptr.h:30
void Clear()
clear the pointer
Definition linuxthreadlocalptr.h:55
void * Get() const
get pointer
Definition linuxthreadlocalptr.h:46
void Set(void *ptr)
set pointer
Definition linuxthreadlocalptr.h:37
Definition linuxcompletioncounter.h:15
int IndexT
Definition types.h:48