view src/os/unix/ngx_darwin.h @ 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
line wrap: on
line source


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


#ifndef _NGX_DARWIN_H_INCLUDED_
#define _NGX_DARWIN_H_INCLUDED_


ngx_chain_t *ngx_darwin_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in,
    off_t limit);

extern int       ngx_darwin_kern_osreldate;
extern int       ngx_darwin_hw_ncpu;
extern u_long    ngx_darwin_net_inet_tcp_sendspace;


#endif /* _NGX_DARWIN_H_INCLUDED_ */