|
AGX Dynamics
2.35.0.1
|
Go to the source code of this file.
Classes | |
| class | agx::StaticDataInitializer |
Namespaces | |
| agx | |
| The agx namespace contains the dynamics/math part of the AGX Dynamics API. | |
Macros | |
| #define | AGX_STATIC_DATA(_Name, _Type) |
| Static data helper to avoid static data initialization order problems (before main). More... | |
| #define AGX_STATIC_DATA | ( | _Name, | |
| _Type | |||
| ) |
Static data helper to avoid static data initialization order problems (before main).
Local function member variable is allocated on demand. StaticDataInitializer is used to force initialization before main to avoid potential thread data race conditions. Usage:
AGX_STATIC_DATA(s_var, MyClass); ... s_var().doSomething();
Definition at line 38 of file StaticData.h.