diff options
| author | Kuba Mracek <mracek@apple.com> | 2017-04-17 18:17:38 +0000 |
|---|---|---|
| committer | Kuba Mracek <mracek@apple.com> | 2017-04-17 18:17:38 +0000 |
| commit | ceb30b0717456feeae9a6c9142169b9e39cc8eff (patch) | |
| tree | 1a1acd350702ca35f3cf073289d9811875d860f1 /llvm/unittests/ADT/APIntTest.cpp | |
| parent | dfe2ffe8c55de9536cc72636698a5db1f2246269 (diff) | |
| download | bcm5719-llvm-ceb30b0717456feeae9a6c9142169b9e39cc8eff.tar.gz bcm5719-llvm-ceb30b0717456feeae9a6c9142169b9e39cc8eff.zip | |
[sanitizer] Introduce tid_t as a typedef for OS-provided thread IDs
We seem to assume that OS-provided thread IDs are either uptr or int, neither of which is true on Darwin. This introduces a tid_t type, which holds a OS-provided thread ID (gettid on Linux, pthread_threadid_np on Darwin, pthread_self on FreeBSD).
Differential Revision: https://reviews.llvm.org/D31774
llvm-svn: 300473
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
0 files changed, 0 insertions, 0 deletions

