Mercurial > hg > nginx
comparison src/event/ngx_event_busy_lock.c @ 297:ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 29 Mar 2004 17:43:58 +0000 |
parents | e91499541410 |
children | af4c6b45a687 |
comparison
equal
deleted
inserted
replaced
296:bfe099e3f5b4 | 297:ee394e997c77 |
---|---|
10 static void ngx_event_busy_lock_posted_handler(ngx_event_t *ev); | 10 static void ngx_event_busy_lock_posted_handler(ngx_event_t *ev); |
11 | 11 |
12 | 12 |
13 /* | 13 /* |
14 * NGX_OK: the busy lock is held | 14 * NGX_OK: the busy lock is held |
15 * NGX_BUSY: there are many the busy locks or many the waiting locks | |
16 * NGX_AGAIN: the all busy locks are held but we will wait the specified time | 15 * NGX_AGAIN: the all busy locks are held but we will wait the specified time |
17 * NGX_ERROR: there was error while the mutex locking | 16 * NGX_BUSY: ctx->timer == 0: there are many the busy locks |
17 * ctx->timer != 0: there are many the waiting locks | |
18 * NGX_ERROR: an error occured while the mutex locking | |
18 */ | 19 */ |
19 | 20 |
20 ngx_int_t ngx_event_busy_lock(ngx_event_busy_lock_t *bl, | 21 ngx_int_t ngx_event_busy_lock(ngx_event_busy_lock_t *bl, |
21 ngx_event_busy_lock_ctx_t *ctx) | 22 ngx_event_busy_lock_ctx_t *ctx) |
22 { | 23 { |