Zero  0.1.0
Macros | Typedefs | Functions | Variables
tls.cpp File Reference
#include "tls.h"
#include <vector>
#include <utility>

Macros

#define STR(x)   STR2(x)
 
#define STR2(x)   #x
 
#define ATTEMPT(action)
 

Typedefs

typedef std::vector< std::pair< void(*)(), void(*)()> > tls_function_list
 

Functions

static tls_function_listregistered_tls (nullptr)
 

Variables

static bool tls_manager_initialized = false
 

Macro Definition Documentation

§ ATTEMPT

#define ATTEMPT (   action)
Value:
do { \
int err = action; \
if(err != 0) { \
std::printf("%s failed with error %d\n", #action, err); \
std::exit(-1); \
} \
} while(0)

§ STR

#define STR (   x)    STR2(x)

§ STR2

#define STR2 (   x)    #x

Typedef Documentation

§ tls_function_list

typedef std::vector<std::pair<void (*)(), void (*)()> > tls_function_list

Function Documentation

§ registered_tls()

static tls_function_list* registered_tls ( nullptr  )
static

Variable Documentation

§ tls_manager_initialized

bool tls_manager_initialized = false
static