]> git.kaiwu.me - nginx.git/commit
Added ngx_ncpu detection for most *nix platforms.
authorValentin Bartenev <vbart@nginx.com>
Fri, 10 Feb 2012 11:24:19 +0000 (11:24 +0000)
committerValentin Bartenev <vbart@nginx.com>
Fri, 10 Feb 2012 11:24:19 +0000 (11:24 +0000)
commit891b43db32ad7b21bc9e37f42751cb6fc85a3a73
treeb4b0c8a7353d8b727a7e50820b320432b6a26aca
parent9e8708cbd6da2ba2a2bdbc93c666aeee2dfefddc
Added ngx_ncpu detection for most *nix platforms.

This inaccurate detection by using sysconf(_SC_NPROCESSORS_ONLN) can improve
usage of the mutex lock optimization on multicore systems.
auto/unix
src/os/unix/ngx_posix_init.c