summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/DebugCounter.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-03 17:15:17 +0000
committerZachary Turner <zturner@google.com>2017-03-03 17:15:17 +0000
commit757dbc9ff325eaccaf2bfba8414c205d21117d1c (patch)
treee86916e4426e7c2d31496a0fa431212f61c931b7 /llvm/lib/Support/DebugCounter.cpp
parent6dfab414db7cf37a3f6fa049108e233079a7374f (diff)
downloadbcm5719-llvm-757dbc9ff325eaccaf2bfba8414c205d21117d1c.tar.gz
bcm5719-llvm-757dbc9ff325eaccaf2bfba8414c205d21117d1c.zip
[Support] Provide access to current thread name/thread id.
Applications often need the current thread id when making system calls, and some operating systems provide the notion of a thread name, which can be useful in enabling better diagnostics when debugging or logging. This patch adds an accessor for the thread id, and "best effort" getters and setters for the thread name. Since this is non critical functionality, no error is returned to indicate that a platform doesn't support thread names. Differential Revision: https://reviews.llvm.org/D30526 llvm-svn: 296887
Diffstat (limited to 'llvm/lib/Support/DebugCounter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud