Mercurial > hg > nginx-vendor-0-6
comparison src/core/ngx_spinlock.c @ 42:41ccba1aba45 NGINX_0_1_21
nginx 0.1.21
*) Bugfix: the ngx_http_stub_status_module showed incorrect statistics
if "rtsig" method was used or if several worker process ran on SMP.
*) Bugfix: nginx could not be built by the icc compiler on Linux or if
the zlib-1.2.x library was building from sources.
*) Bugfix: nginx could not be built on NetBSD 2.0.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 22 Feb 2005 00:00:00 +0300 |
parents | f0b350454894 |
children | 408f195b3482 |
comparison
equal
deleted
inserted
replaced
41:4d8e7a81b3a0 | 42:41ccba1aba45 |
---|---|
5 | 5 |
6 | 6 |
7 #include <ngx_config.h> | 7 #include <ngx_config.h> |
8 #include <ngx_core.h> | 8 #include <ngx_core.h> |
9 | 9 |
10 | |
11 /* | |
12 * TODO: the P4 optimized assembler version with the "pause" operation | |
13 */ | |
10 | 14 |
11 void ngx_spinlock(ngx_atomic_t *lock, ngx_uint_t spin) | 15 void ngx_spinlock(ngx_atomic_t *lock, ngx_uint_t spin) |
12 { | 16 { |
13 | 17 |
14 #if (NGX_HAVE_ATOMIC_OPS) | 18 #if (NGX_HAVE_ATOMIC_OPS) |