diff options
Diffstat (limited to 'src/cxa_handlers.hpp')
-rw-r--r-- | src/cxa_handlers.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cxa_handlers.hpp b/src/cxa_handlers.hpp index 95a320d..64994ac 100644 --- a/src/cxa_handlers.hpp +++ b/src/cxa_handlers.hpp @@ -35,6 +35,20 @@ extern void (*__cxa_terminate_handler)(); extern void (*__cxa_unexpected_handler)(); extern void (*__cxa_new_handler)(); +/* + + At some point in the future these three symbols will become + C++11 atomic variables: + + extern std::atomic<std::terminate_handler> __cxa_terminate_handler; + extern std::atomic<std::unexpected_handler> __cxa_unexpected_handler; + extern std::atomic<std::new_handler> __cxa_new_handler; + + This change will not impact their ABI. But it will allow for a + portible performance optimization. + +*/ + } // extern "C" #endif // _CXA_HANDLERS_H |