18 #ifndef LUNCHBOX_TLS_H 19 #define LUNCHBOX_TLS_H 34 typedef void (*ThreadDestructor_t)(
void*);
43 LUNCHBOX_API
explicit TLS(ThreadDestructor_t dtorFunc);
49 LUNCHBOX_API
void set(
const void* data);
52 LUNCHBOX_API
void*
get();
55 LUNCHBOX_API
const void*
get()
const;
58 detail::TLS*
const impl_;
60 TLS(
const TLS&) =
delete;
62 TLS& operator=(
const TLS&) =
delete;
63 TLS& operator=(
const TLS&&) =
delete;
67 #endif // LUNCHBOX_TLS_H Defines export visibility macros for library Lunchbox.
Abstraction layer and common utilities for multi-threaded programming.
Provides thread-local storage API used by PerThread and PerThreadRef.