fix: don't use C++ thread_local on MacOs
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 9 Sep 2021 16:11:16 +0000 (12:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 Sep 2021 18:20:37 +0000 (14:20 -0400)
commite915ab84fd0c02d37504f3eb1e1f3be93ea6dc37
tree92e2cb88da0476c609f97edb8a90243ef7598ae5
parentee990caca068cbc4618c4b10956096c40ab0b330
fix: don't use C++ thread_local on MacOs

Recent versions of Apple's clang++ do support 'thread_local' but the
implementation generates additional helper symbols. This is a problem
when accessing an extern TLS variable in a C++ compile unit that is
provided by a C library that doesn't have those extra symbols.

Fallback to using '__thread' on MacOs.

Change-Id: I87cb5b3c9293f7bf66f7115f453b546dd793a449
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/tls-compat.h
This page took 0.026098 seconds and 4 git commands to generate.