[cfe-commits] patch: libcxxabi cxa_*_virtual and cxa_guard_* methods
Howard Hinnant
hhinnant at apple.com
Sun May 22 16:28:17 PDT 2011
Question for clang developers:
Will these namespace-scope definitions ever generate a call to __cxa_guard_acquire? I know this is forward looking concerning thread_local:
#include <stddef.h>
namespace
{
size_t next_id;
thread_local const size_t id = __sync_fetch_and_add(&next_id, 1) + 1;
}
My motivation is to generate a 56-bit non-zero thread id for use in the __cxa_guard_acquire implementation. Thus if these call __cxa_guard_acquire, then I can't use them.
Thanks,
Howard
More information about the cfe-commits
mailing list