Don't use Pthread in EventBase
authorChristopher Dykes <cdykes@fb.com>
Mon, 16 Jan 2017 01:46:24 +0000 (17:46 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 16 Jan 2017 01:48:03 +0000 (17:48 -0800)
commit01f97980d6455d6b28c7f8286f394bf3c533bc8a
tree97b3018ac60713374bc8155bec71cf7f42661d18
parentf57ddfc76b3835033a36343df22ae821168dcc0f
Don't use Pthread in EventBase

Summary:
Pthread is currently a dependency of Folly that is not really necessary on Windows, or even with standard C++ for the most part, so start work on killing it in Folly.
This switches EventBase to using `std::thread::id`'s instead, which also means we aren't reliant on the implementation detail that thread id 0 is invalid. Well, we are, but it's now the standard library's fault not ours.

Reviewed By: yfeldblum

Differential Revision: D4418128

fbshipit-source-id: a9c95ac6c7305c960156a4ad684b6db89b5856d9
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h