neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::i_shared_thread_local Class Referenceabstract

Shared thread local service. More...

#include <i_shared_thread_local.hpp>

Inheritance diagram for neolib::i_shared_thread_local:
neolib::services::i_service neolib::shared_thread_local

Classes

struct  result_type
 

Public Member Functions

virtual result_type allocate_or_get (char const *aFullyQualifiedVariableName, std::size_t aVariableSize, void(*aDeleter)(void *))=0
 
template<typename T >
result_type allocate_or_get (char const *aFullyQualifiedVariableName, void(*aDeleter)(void *))
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Static Public Member Functions

static uuid constiid ()
 

Detailed Description

Shared thread local service.

This service is a way to share thread local variables between an application and multiple DLLs that all statically link against the same library that contains the thread local variable.

To use this service should be exposed to the DLLs from the application. TODO: HOWTO documentation.

Definition at line 51 of file i_shared_thread_local.hpp.

Member Function Documentation

◆ allocate_or_get() [1/2]

virtual result_type neolib::i_shared_thread_local::allocate_or_get ( char const aFullyQualifiedVariableName,
std::size_t  aVariableSize,
void(*)(void *)  aDeleter 
)
pure virtual

Implemented in neolib::shared_thread_local.

◆ allocate_or_get() [2/2]

template<typename T >
result_type neolib::i_shared_thread_local::allocate_or_get ( char const aFullyQualifiedVariableName,
void(*)(void *)  aDeleter 
)
inline

Definition at line 63 of file i_shared_thread_local.hpp.

◆ iid()

static uuid const & neolib::i_shared_thread_local::iid ( )
inlinestatic

Definition at line 68 of file i_shared_thread_local.hpp.


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