Switch some assertions to std::thread rather than pthread
authorChristopher Dykes <cdykes@fb.com>
Mon, 1 Aug 2016 20:17:30 +0000 (13:17 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Mon, 1 Aug 2016 20:23:29 +0000 (13:23 -0700)
commit800802c8573781c591c39d4ea580938a9cd2e8a0
treed12f0bae707275a11769bf78f680e2f26c7acba1
parent27945a697803eab3c471aa22780c8b32ced45fdf
Switch some assertions to std::thread rather than pthread

Summary: Because the check macros attempt to pipe the values to the error stream, but we can't do that with the Windows implementation. Switch to `std::this_thread::get_id()` instead because it's standard and can be piped.

Reviewed By: djwatson

Differential Revision: D3650362

fbshipit-source-id: 8af65448a33949f310abc818d95bac843214b685
folly/io/async/test/AsyncSocketTest2.cpp