From 56b4f465a140660b8c59926a292fa2464c9cb367 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 15 Apr 2016 23:09:20 -0600 Subject: [PATCH] Add warning on platforms without thread_local --- include/chaiscript/chaiscript_threading.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/chaiscript/chaiscript_threading.hpp b/include/chaiscript/chaiscript_threading.hpp index 22506936..0d2825f7 100644 --- a/include/chaiscript/chaiscript_threading.hpp +++ b/include/chaiscript/chaiscript_threading.hpp @@ -108,6 +108,9 @@ namespace chaiscript #else +#pragma message ("Threading without thread_local support is not well supported.") + + /// Typesafe thread specific storage. If threading is enabled, this class uses a mutex protected map. If /// threading is not enabled, the class always returns the same data, regardless of which thread it is called from. ///