diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-07-07 15:01:00 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-07-07 15:01:00 +0000 |
commit | 2b97993c7a6525bf41c694414450943d39605757 (patch) | |
tree | b3b3870575cd65e64ef59de5359bfdd3695bc77c /src/os/unix/ngx_channel.c | |
parent | c78c41cefcf1e1fa8005f81b7c6cc0c857bcf46f (diff) | |
download | nginx-2b97993c7a6525bf41c694414450943d39605757.tar.gz nginx-2b97993c7a6525bf41c694414450943d39605757.zip |
nginx-0.0.7-2004-07-07-19:01:00 import
Diffstat (limited to 'src/os/unix/ngx_channel.c')
-rw-r--r-- | src/os/unix/ngx_channel.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/unix/ngx_channel.c b/src/os/unix/ngx_channel.c index ff0aeccb0..01416d6ab 100644 --- a/src/os/unix/ngx_channel.c +++ b/src/os/unix/ngx_channel.c @@ -194,6 +194,13 @@ ngx_int_t ngx_add_channel_event(ngx_cycle_t *cycle, ngx_fd_t fd, rev->data = c; wev->data = c; +#if (NGX_THREADS) + rev->lock = &c->lock; + wev->lock = &c->lock; + rev->own_lock = &c->lock; + wev->own_lock = &c->lock; +#endif + ev = (event == NGX_READ_EVENT) ? rev : wev; ev->event_handler = handler; |