Thread-local storage wrapper that avoids destructor calls. More...
#include <casadi_common.hpp>
Works around MinGW-w64 bug where thread_local destructors may run after static object destructors, causing crashes at DLL unload. The wrapped object is placement-new'd into aligned storage and never destructed. Memory is reclaimed when thread exits.
Definition at line 339 of file casadi_common.hpp.
Public Member Functions | |
| T & | get () |
|
inline |
Definition at line 343 of file casadi_common.hpp.
References casadi::T.
Referenced by casadi::uerr(), and casadi::uout().