Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid forking for processor_count if possible
This re-orders the checks for the processor count so that forking is only done when needed. alpha-linux does not support the processor entry in /proc/cpuinfo so we must catch that case and fall back to using nproc which does work on alpha. This is a rework of ruby-concurrency#549 based on suggestions made in ruby-concurrency#576
- Loading branch information