Andrew Kryczka be421b0b16 portable sched_getcpu calls
Summary:
- added a feature test in build_detect_platform to check whether sched_getcpu() is available. glibc offers it only on some platforms (e.g., linux but not mac); this way should be easier than maintaining a list of platforms on which it's available.
- refactored PhysicalCoreID() to be simpler / less repetitive. ordered the conditional compilation clauses from most-to-least preferred
Closes https://github.com/facebook/rocksdb/pull/2272

Differential Revision: D5038093

Pulled By: ajkr

fbshipit-source-id: 81d7db3cc620250de220bdeb3194b2b3d7673de7
2017-05-10 12:29:23 -07:00
..
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-04-27 18:06:12 -07:00
2017-05-03 21:13:14 -07:00
2017-04-18 16:56:48 -07:00
2017-05-10 12:29:23 -07:00
2017-03-28 12:09:12 -07:00
2017-04-27 18:06:12 -07:00