Support setting thread name via std::thread::id
authorChristopher Dykes <cdykes@fb.com>
Mon, 16 Jan 2017 01:46:23 +0000 (17:46 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 16 Jan 2017 01:48:02 +0000 (17:48 -0800)
commitf57ddfc76b3835033a36343df22ae821168dcc0f
tree88260affb289b2fe233cd52c122e3278493bf004
parentff66c8dcf1b022a2953cd9c10661b24d7bf04d1f
Support setting thread name via std::thread::id

Summary: It's possible via some hackery, so wrap it up nicely into the API.

Reviewed By: yfeldblum

Differential Revision: D4418728

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