Add folly::getCurrentThreadID()
authorChristopher Dykes <cdykes@fb.com>
Thu, 17 Nov 2016 03:20:16 +0000 (19:20 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 17 Nov 2016 03:23:31 +0000 (19:23 -0800)
commit4e42eb8b9730276b500d4b868bc4e47b7a2c0ec6
tree929ff4d3dc835c33a149d8d343e8457775491912
parenta64f5cb7bad69ab59d6f3456b8a80d1bfeacc190
Add folly::getCurrentThreadID()

Summary: And also use it in a couple of tests, so that they can be compiled on Windows, where `pthread_t` is a struct rather than a pointer or integer.

Reviewed By: yfeldblum

Differential Revision: D4191560

fbshipit-source-id: 5bcf0a2952109b2a9bc5220c4640d42e2cdf8977
folly/Makefile.am
folly/ThreadId.h [new file with mode: 0644]
folly/test/ThreadCachedIntTest.cpp
folly/test/ThreadLocalTest.cpp