Shift the implementation of setThreadName out of the header
authorChristopher Dykes <cdykes@fb.com>
Tue, 25 Apr 2017 01:41:06 +0000 (18:41 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 25 Apr 2017 01:50:03 +0000 (18:50 -0700)
commit6bfd09a8b7e021d010760d52d06ff3db2797aa3e
tree168c05cd8a2002068609da023128713ecd2eb0eb
parentdee718a22fcc0c081ccc56c4b8f0fb3c567fc062
Shift the implementation of setThreadName out of the header

Summary:
`folly::setThreadName` is neither performance critical, nor (after this diff) is it a template, so exposing the mess that is its implementation to the world isn't worth it.
The implementation is expected to get even more messy as I add support for getting the current thread's name, and eventually also add support for Windows as well.

This also required exposing whether the current platform supports setting the name of the current or other threads.

Reviewed By: yfeldblum

Differential Revision: D4942401

fbshipit-source-id: 0e3be203995fa6ed667a5fd28dac7ba7fa49d683
folly/Makefile.am
folly/ThreadName.cpp [new file with mode: 0644]
folly/ThreadName.h
folly/test/ThreadNameTest.cpp