mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-30 03:41:25 +03:00
Summary: This change replaces calls of std::thread::hardware_concurrency with folly::hardware_concurrency when the caller wants the number of processors available to a job. This should be largely a no-change since most jobs use platform010 with glibc 2.34 where these functions behave identically. However, jobs on Aarch64 use glibc 2.40. There, the folly method continues to return the number of processors available to a job but the std version returns the number of processors known to the operating system, a different number when the job is stacked. Most of fbcode expects the folly behavior and this codemod only affects those callers. By making the switch to the folly method, code will behave the same when code is run on Aarch64 or when the glibc is upgraded on x86. Reviewed By: hanidamlaj Differential Revision: D87909623 fbshipit-source-id: 7fb5c02ec635ce64241752a34083e6d894646183
29 KiB
29 KiB