We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 741819b + 05157cc commit 3ca315bCopy full SHA for 3ca315b
2 files changed
include/boost/interprocess/detail/intermodule_singleton_common.hpp
@@ -421,7 +421,7 @@ class intermodule_singleton_impl
421
} BOOST_INTERPROCESS_CATCH_END
422
}
423
//if(Phoenix){
424
- std::atexit(&atexit_work);
+ BOOST_INTERPROCESS_ATEXIT(&atexit_work);
425
//}
426
atomic_inc32(&rcount->singleton_ref_count);
427
ret_ptr = rcount->ptr;
include/boost/interprocess/detail/workaround.hpp
@@ -375,4 +375,8 @@ namespace boost {
375
376
#endif //!defined(DISABLE_BOOST_INTERPROCESS_EINTR_RETRY) && defined(__GNUC__)
377
378
+#if !defined(BOOST_INTERPROCESS_ATEXIT)
379
+ #define BOOST_INTERPROCESS_ATEXIT(f) std::atexit((f))
380
+#endif //!defined(BOOST_INTERPROCESS_ATEXIT)
381
+
382
#endif //#ifndef BOOST_INTERPROCESS_DETAIL_WORKAROUND_HPP
0 commit comments