Use folly::ThreadLocal in DeterministicSchedule
Summary: DeterministicSchedule does not work on mobile because __thread or thread_local support is not present. folly::ThreadLocal helps because it uses pthread_getspecific for mobile and platforms where support for this is not there This does mean that we can't add DSched tests for folly::ThreadLocal, but that does not have DSched tests anyway. When we add DSched tests for that, we can move to using a lock + map keyed by std::this_thread::get_id Reviewed By: yfeldblum Differential Revision: D15770455 fbshipit-source-id: 2a3cc6b3b1c116469cce6295a641d784e5bdfd50
Showing
Please register or sign in to comment