From 5984c58f5e0a1103a3ac54cf9d32e4340bf4dfe7 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 3 Feb 2016 13:33:08 -0800 Subject: [PATCH] Add warning to atSetExceptionHandler --- include/Athena/Global.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/Athena/Global.hpp b/include/Athena/Global.hpp index bdea053..75543ee 100644 --- a/include/Athena/Global.hpp +++ b/include/Athena/Global.hpp @@ -129,6 +129,10 @@ enum Endian typedef void (*atEXCEPTION_HANDLER)(Athena::error::Level level, const char* file, const char* function, int line, const char* fmt, ...); atEXCEPTION_HANDLER atGetExceptionHandler(); +/** + * atSetExceptionHandler is only meant to be used a the start and end of an application's lifetime, + * this function cannot be considered thread-safe, therefore modifying during runtime is not recommended. + */ void atSetExceptionHandler(atEXCEPTION_HANDLER func); std::ostream& operator<<(std::ostream& os, const Athena::SeekOrigin& origin);