comparison auto/unix @ 4506:14f8e8a0cc77 stable-1.0

Merge of r4460: 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.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 05 Mar 2012 12:10:09 +0000
parents 4919fb357a5d
children
comparison
equal deleted inserted replaced
4505:7150b4325a25 4506:14f8e8a0cc77
705 ngx_feature_incs="#include <dirent.h>" 705 ngx_feature_incs="#include <dirent.h>"
706 ngx_feature_path= 706 ngx_feature_path=
707 ngx_feature_libs= 707 ngx_feature_libs=
708 ngx_feature_test="struct dirent dir; dir.d_type = DT_REG" 708 ngx_feature_test="struct dirent dir; dir.d_type = DT_REG"
709 . auto/feature 709 . auto/feature
710
711
712 ngx_feature="sysconf(_SC_NPROCESSORS_ONLN)"
713 ngx_feature_name="NGX_HAVE_SC_NPROCESSORS_ONLN"
714 ngx_feature_run=no
715 ngx_feature_incs=
716 ngx_feature_path=
717 ngx_feature_libs=
718 ngx_feature_test="sysconf(_SC_NPROCESSORS_ONLN)"
719 . auto/feature