view src/core/nginx.h @ 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 6d40dc8e5ed1
children 15e3b7f867a9
line wrap: on
line source


/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#ifndef _NGINX_H_INCLUDED_
#define _NGINX_H_INCLUDED_


#define nginx_version      1001015
#define NGINX_VERSION      "1.1.15"
#define NGINX_VER          "nginx/" NGINX_VERSION

#define NGINX_VAR          "NGINX"
#define NGX_OLDPID_EXT     ".oldbin"


#endif /* _NGINX_H_INCLUDED_ */