diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-02-26 17:10:01 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-26 17:10:01 +0000 |
| commit | 898446c8bacb5b0e1c223dfec4643ebee8d07f8e (patch) | |
| tree | 01470b0ba4a9419412ed82fd4a5f6f746a4819d9 /src/core | |
| parent | f2334416e7485ff1c260a46ba47aeadffeff923a (diff) | |
| download | nginx-898446c8bacb5b0e1c223dfec4643ebee8d07f8e.tar.gz nginx-898446c8bacb5b0e1c223dfec4643ebee8d07f8e.tar.bz2 | |
nginx-0.0.2-2004-02-26-20:10:01 import
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/ngx_times.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/core/ngx_times.c b/src/core/ngx_times.c index 235e7032d..a9ddb82dc 100644 --- a/src/core/ngx_times.c +++ b/src/core/ngx_times.c @@ -77,10 +77,8 @@ void ngx_time_update(time_t s) } #if (NGX_THREADS) - if (ngx_time_mutex) { - if (ngx_mutex_trylock(ngx_time_mutex) != NGX_OK) { - return; - } + if (ngx_mutex_trylock(ngx_time_mutex) != NGX_OK) { + return; } #endif @@ -119,9 +117,7 @@ void ngx_time_update(time_t s) tm.ngx_tm_sec); #if (NGX_THREADS) - if (ngx_time_mutex) { - ngx_mutex_unlock(ngx_time_mutex); - } + ngx_mutex_unlock(ngx_time_mutex); #endif } |
