[PATCH] D29993: Use pthreads to store current thread id on darwin

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 19:20:31 PST 2017


fjricci updated this revision to Diff 88839.
fjricci added a comment.

Initialize thread-local struct

Not sure if this is the best way to do the initialization, in terms of style.
My main concern is with the initialization of the AllocatorCache, I wasn't
sure how to do that outside of the way I did it here.


https://reviews.llvm.org/D29993

Files:
  lib/lsan/lsan_common.h
  lib/lsan/lsan_common_linux.cc
  lib/lsan/lsan_common_mac.cc
  lib/lsan/lsan_thread.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29993.88839.patch
Type: text/x-patch
Size: 3639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170217/5df5cf09/attachment.bin>


More information about the llvm-commits mailing list