[bitcoin/bitcoin] Thread names in logs and deadlock debug tools (take 2) (#13168)

jamesob commented on this pull request.

> +#include
+#include +
+#include +
+/*
+ * TODO: using thread_local changes the abi in ways that may not play nice
+ * when the c++ stdlib is linked dynamically. Disable it until thorough
+ * testing has been done.
+ *
+ * mingw32’s implementation of thread_local has also been shown to behave
+ * erroneously under concurrent usage; see:
+ *
+ * https://gist.github.com/jamesob/fe9a872051a88b2025b1aa37bfa98605
+ */
+#undef HAVE_THREAD_LOCAL

I don’t think so – see the comment above; sounds like @theuni wants to do more testing with dynamic linking before we use `thread_local` outside the context of debug code.

This post was last modified on May 7, 2018, 5:45 pm