Remove pthread dependency from CacheLocality.h
authorAndrew Krieger <andrew.krieger@oculus.com>
Fri, 14 Apr 2017 05:57:20 +0000 (22:57 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 14 Apr 2017 06:08:03 +0000 (23:08 -0700)
commit01de3b4373aee3e7f53c0b469fb8d50d71b87b35
tree42b7ed0069ce5968ce7f95c1e5b2609a2596cf8e
parent4e509c4b6156aba76d3975889fdeb71c2e851f90
Remove pthread dependency from CacheLocality.h

Summary:
For getting a thread id for hashing, std::this_thread::get_id()
is just as good and also removes an unneeded pthreads dependency. This enables
using MPMCQueue on Windows without pthreads as well.

Reviewed By: Orvid, yfeldblum

Differential Revision: D4879940

fbshipit-source-id: c4fb5eea165eb450240f94904aa26a10aa394d1b
folly/detail/CacheLocality.h