Mercurial > hg > nginx
comparison src/core/ngx_spinlock.c @ 493:975f62e77f02 release-0.1.21
nginx-0.1.21-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Tue, 22 Feb 2005 14:40:13 +0000 |
parents | 42d11f017717 |
children | 9c2f3ed7a247 |
comparison
equal
deleted
inserted
replaced
492:a3fac9a5aa5b | 493:975f62e77f02 |
---|---|
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) |