Support naming a ScopedEventBaseThread
authorChristopher Dykes <cdykes@fb.com>
Thu, 4 May 2017 23:46:53 +0000 (16:46 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 4 May 2017 23:51:00 +0000 (16:51 -0700)
commitcf05856cc2cf5e5d1e5717fc19ce3cbad2317ade
tree4ac2499def9797d45f29b69675e0306ca9d72eb3
parent5cef863eee8a03e1b6b137fb283d6fe703f35d2d
Support naming a ScopedEventBaseThread

Summary:
The setThreadName API is in the process of being changed to not accept a thread id, which means the thread itself needs to set the name.
There are times where a `ScopedEventBaseThread` needs to be named, and this makes that possible.

Reviewed By: yfeldblum

Differential Revision: D4916781

fbshipit-source-id: dab05b520a715183ce069151ed16864fa1331abc
folly/io/async/ScopedEventBaseThread.cpp
folly/io/async/ScopedEventBaseThread.h
folly/io/async/test/ScopedEventBaseThreadTest.cpp