Zero  0.1.0
Public Member Functions | List of all members
tls_tricks::tls_manager_schwarz Struct Reference

Static struct to make sure tls_manager's global init() and fini() are called. More...

#include <tls.h>

Public Member Functions

 tls_manager_schwarz ()
 Constructor: invokes global init of all registered tls initializers. More...
 
 ~tls_manager_schwarz ()
 Destructor: invokes global init of all registered tls destructors. More...
 

Detailed Description

Static struct to make sure tls_manager's global init() and fini() are called.

This is a so-called "schwarz counter", included in the .h file and included here (first) so that it guarantees that the tls_manager is indeed initialized before any other schwarz counter or static declaration uses register_tls.

Constructor & Destructor Documentation

§ tls_manager_schwarz()

tls_tricks::tls_manager_schwarz::tls_manager_schwarz ( )
inline

Constructor: invokes global init of all registered tls initializers.

§ ~tls_manager_schwarz()

tls_tricks::tls_manager_schwarz::~tls_manager_schwarz ( )
inline

Destructor: invokes global init of all registered tls destructors.


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