diff oct-conf-post.in.h @ 24538:2b273df71aa0

allow experimenting with thread_local storage * mk-octave-config-h.sh, oct-conf-post.in.h: Define OCTAVE_THREAD_LOCAL. * interpreter.h, interpreter.cc (interpreter::instance): Tag with OCTAVE_THREAD_LOCAL. Note that error message should be changed when a thread_local interpreter object is really possible.
author John W. Eaton <jwe@octave.org>
date Sat, 06 Jan 2018 12:23:14 -0500
parents 194eb4bd202b
children 6652d3823428
line wrap: on
line diff
--- a/oct-conf-post.in.h	Sat Jan 06 13:48:58 2018 -0800
+++ b/oct-conf-post.in.h	Sat Jan 06 12:23:14 2018 -0500
@@ -205,6 +205,10 @@
 
 #define OCTAVE_HAVE_F77_INT_TYPE 1
 
+#if defined (__cplusplus) && ! defined (OCTAVE_THREAD_LOCAL)
+#  define OCTAVE_THREAD_LOCAL
+#endif
+
 /* Tag indicating Octave's autoconf-generated config.h has been
    included.  This symbol is provided because autoconf-generated
    config.h files do not define a multiple-inclusion guard.  See also