diff options
author | Vladimir Homutov <vl@nginx.com> | 2016-02-18 13:58:49 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2016-02-18 13:58:49 +0300 |
commit | faa96e82d273bec6cb8bdf37f78e038aecf7621a (patch) | |
tree | 205d92f8de5efb70b378703307f7a98d3c304e5e /src/core/ngx_cycle.h | |
parent | b5d7d3f024f587682e320d891e52e693939a5f14 (diff) | |
download | nginx-faa96e82d273bec6cb8bdf37f78e038aecf7621a.tar.gz nginx-faa96e82d273bec6cb8bdf37f78e038aecf7621a.zip |
Core: added support for more than 64 CPUs in worker_cpu_affinity.
Diffstat (limited to 'src/core/ngx_cycle.h')
-rw-r--r-- | src/core/ngx_cycle.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_cycle.h b/src/core/ngx_cycle.h index 27401d0b9..cfdbb550e 100644 --- a/src/core/ngx_cycle.h +++ b/src/core/ngx_cycle.h @@ -94,7 +94,7 @@ typedef struct { ngx_uint_t cpu_affinity_auto; ngx_uint_t cpu_affinity_n; - uint64_t *cpu_affinity; + ngx_cpuset_t *cpu_affinity; char *username; ngx_uid_t user; @@ -121,7 +121,7 @@ ngx_int_t ngx_signal_process(ngx_cycle_t *cycle, char *sig); void ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user); char **ngx_set_environment(ngx_cycle_t *cycle, ngx_uint_t *last); ngx_pid_t ngx_exec_new_binary(ngx_cycle_t *cycle, char *const *argv); -uint64_t ngx_get_cpu_affinity(ngx_uint_t n); +ngx_cpuset_t *ngx_get_cpu_affinity(ngx_uint_t n); ngx_shm_zone_t *ngx_shared_memory_add(ngx_conf_t *cf, ngx_str_t *name, size_t size, void *tag); |