Use thread_local instead of compiler extensions (#210)
authorAndres Noetzli <andres.noetzli@gmail.com>
Thu, 31 Aug 2017 03:55:27 +0000 (20:55 -0700)
committerGitHub <noreply@github.com>
Thu, 31 Aug 2017 03:55:27 +0000 (20:55 -0700)
commit546d795470ca7c30fc62fe9b6c7b8e5838e1eed4
tree443f7101c4246b684ce21a04704d769eb2db15ad
parentd7dadde871ae4775748695b0b7f9deee49576c0a
Use thread_local instead of compiler extensions (#210)

C++11 introduced the thread_local keyword, so we don't need to use
non-standard extensions or our custom pthread extension anymore.
The behavior was previously introduced as a workaround in commit
753a072c542c1c254d7c6adbf10e091ba585ede5. This commit
introduces the macro CVC4_THREAD_LOCAL that can be used to
declare variables as thread local. For Swig, this macro is defined to
be empty.
27 files changed:
COPYING
config/ax_tls.m4 [deleted file]
configure.ac
src/Makefile.am
src/base/Makefile.am
src/base/cvc4_assert.cpp
src/base/cvc4_assert.h
src/base/exception.cpp
src/base/exception.h
src/base/tls.h [new file with mode: 0644]
src/base/tls.h.in [deleted file]
src/bindings/swig.h
src/expr/node_manager.cpp
src/expr/node_manager.h
src/main/driver_unified.cpp
src/main/main.h
src/main/util.cpp
src/options/options.h
src/options/options_public_functions.cpp
src/options/options_template.cpp
src/smt/smt_engine_scope.cpp
src/smt_util/node_visitor.h
src/theory/arith/dual_simplex.cpp
src/theory/arith/fc_simplex.cpp
src/theory/arith/soi_simplex.cpp
src/theory/arith/theory_arith_private.cpp
src/theory/rewriter.cpp