comparison auto/unix @ 4459:ccb2f8e3d08d

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.
author Valentin Bartenev <vbart@nginx.com>
date Fri, 10 Feb 2012 11:24:19 +0000
parents d620f497c50f
children 0b05acc045eb
comparison
equal deleted inserted replaced
4458:2d4ff8bd5649 4459:ccb2f8e3d08d
719 ngx_feature_incs="#include <dirent.h>" 719 ngx_feature_incs="#include <dirent.h>"
720 ngx_feature_path= 720 ngx_feature_path=
721 ngx_feature_libs= 721 ngx_feature_libs=
722 ngx_feature_test="struct dirent dir; dir.d_type = DT_REG" 722 ngx_feature_test="struct dirent dir; dir.d_type = DT_REG"
723 . auto/feature 723 . auto/feature
724
725
726 ngx_feature="sysconf(_SC_NPROCESSORS_ONLN)"
727 ngx_feature_name="NGX_HAVE_SC_NPROCESSORS_ONLN"
728 ngx_feature_run=no
729 ngx_feature_incs=
730 ngx_feature_path=
731 ngx_feature_libs=
732 ngx_feature_test="sysconf(_SC_NPROCESSORS_ONLN)"
733 . auto/feature