Use getCurrentThreadID() rather than pthread_self() in MemoryIdler
authorChristopher Dykes <cdykes@fb.com>
Fri, 14 Apr 2017 04:19:08 +0000 (21:19 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 14 Apr 2017 04:20:15 +0000 (21:20 -0700)
commit04de301e53306065da021bcda8fc48b9030cbd25
treee72a9d783c2a983bb3cdf5845fde51f2ea83b047
parent91b69f13e93474318fc63d9f9905d05b7552ce07
Use getCurrentThreadID() rather than pthread_self() in MemoryIdler

Summary: Ignoring the questionability of the approach it's being used in, it's better to not have the direct PThread dependency.

Reviewed By: yfeldblum

Differential Revision: D4889245

fbshipit-source-id: da099c6f938dbe98c1b9eeaf4de0a27a2c4d65f1
folly/detail/MemoryIdler.h