Add support for getting the current thread's name
authorChristopher Dykes <cdykes@fb.com>
Thu, 4 May 2017 23:31:01 +0000 (16:31 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 4 May 2017 23:36:31 +0000 (16:36 -0700)
commit5cef863eee8a03e1b6b137fb283d6fe703f35d2d
tree7cece013ee275ae8a4637a2e62c8971cd6f73580
parent223ef4eb26a7972b3cfa7bab945f7b4dc5d1000b
Add support for getting the current thread's name

Summary: It's primarily for use in testing, but is useful for log output as well.

Reviewed By: yfeldblum

Differential Revision: D4943072

fbshipit-source-id: 0ca259d6c90f439e733a6179e7cba85dcd1ec9e7
folly/ThreadName.cpp
folly/ThreadName.h
folly/test/ThreadNameTest.cpp