Utils and libraries: fix static_assert for macro HAVE_THREAD_LOCAL #15970

pull orientye wants to merge 1 commits into bitcoin:master from orientye:master changing 1 files +4 −0
  1. orientye commented at 6:15 AM on May 7, 2019: contributor

    Utils and libraries: fix static_assert for macro HAVE_THREAD_LOCAL if define DEBUG_LOCKCONTENTION

  2. fix static_assert for macro HAVE_THREAD_LOCAL
    fix static_assert for macro HAVE_THREAD_LOCAL while define DEBUG_LOCKCONTENTION
    41ab2a8924
  3. orientye renamed this:
    fix static_assert for macro HAVE_THREAD_LOCAL
    Utils and libraries: fix static_assert for macro HAVE_THREAD_LOCAL
    on May 7, 2019
  4. fanquake added the label Utils/log/libs on May 7, 2019
  5. orientye commented at 7:22 AM on May 10, 2019: contributor

    The clang compiler give static_assert err if define macro DEBUG_LOCKCONTENTION on mac osx.(HAVE_THREAD_LOCAL was defined in confiure.ac, and thread_local is supported by the os)

    here is the src: #ifdef DEBUG_LOCKCONTENTION #if !defined(HAVE_THREAD_LOCAL) static_assert(false, "thread_local is not supported"); #endif because it lacks include <config/bitcoin-config.h> in sync.cpp for HAVE_THREAD_LOCAL macro.

    This PR has fixed this bug.

  6. laanwj commented at 6:17 PM on May 16, 2019: member

    utACK 41ab2a892456f4f3e27128a7f9237bc45cc288dd

  7. laanwj merged this on May 16, 2019
  8. laanwj closed this on May 16, 2019

  9. laanwj referenced this in commit 8f2f17f79a on May 16, 2019
  10. sidhujag referenced this in commit 206e65aa51 on May 18, 2019
  11. luke-jr referenced this in commit 62458b5f4b on Sep 3, 2019
  12. PastaPastaPasta referenced this in commit 4d46f22b7f on Jun 27, 2021
  13. PastaPastaPasta referenced this in commit 088221f0a0 on Jun 28, 2021
  14. PastaPastaPasta referenced this in commit c0176bcb05 on Jun 29, 2021
  15. PastaPastaPasta referenced this in commit 01661d453c on Sep 11, 2021
  16. PastaPastaPasta referenced this in commit 5484390217 on Sep 11, 2021
  17. PastaPastaPasta referenced this in commit 661222fb57 on Sep 12, 2021
  18. DrahtBot locked this on Dec 16, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me