Merge: nitc: use pthread_keys on iOS where __thread is not available
authorJean Privat <jean@pryen.org>
Fri, 25 May 2018 12:55:47 +0000 (08:55 -0400)
committerJean Privat <jean@pryen.org>
Fri, 25 May 2018 12:55:47 +0000 (08:55 -0400)
commit8edea40919361b4a3577bc59a4f531343185010e
tree4173fbd6a6738122fa35b3671dd3a890aa4d559d
parente7963f2385011047a5c6b7999cef2502329871a8
parentb997b191280d6989e89da452fb4ee9f96aa88c5e
Merge: nitc: use pthread_keys on iOS where __thread is not available

Add an alternative to the use of `__thread` to manage the catch stack on iOS. This fixes the iOS support, broken since #2612.

The issue with `test_catch_multi_threaded` was seemingly unrelated, caused by a stack overflow. @BlackMinou does this make sense?

See previously failing tests: http://gresil.org/jenkins/job/CI%20Github%20OSX/621/#showFailuresLink

Pull-Request: #2698