Use std::thread::id in Fiber rather than a syscall
authorChristopher Dykes <cdykes@fb.com>
Wed, 4 May 2016 17:27:25 +0000 (10:27 -0700)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Wed, 4 May 2016 17:35:42 +0000 (10:35 -0700)
commit7d3bbfee07d6216cebf403e975bea355e154e1a9
treef88a8f02004876cff0bc65e49c0204ca86c5f6d5
parent36f174f920a35c7de58906b216008f8b56bd7231
Use std::thread::id in Fiber rather than a syscall

Summary: syscall() doesn't exist on Windows, but std::thread::id is standardized, and can do what we need it for, so use it instead.

Reviewed By: yfeldblum

Differential Revision: D3256064

fb-gh-sync-id: efddac82c117ccd8a53c8c93248529000b4326a5
fbshipit-source-id: efddac82c117ccd8a53c8c93248529000b4326a5
folly/experimental/fibers/Fiber.cpp
folly/experimental/fibers/Fiber.h