diff options
Diffstat (limited to 'locks/beos/proc_mutex.c')
-rw-r--r-- | locks/beos/proc_mutex.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/locks/beos/proc_mutex.c b/locks/beos/proc_mutex.c index e97a2ee80..d253ad5be 100644 --- a/locks/beos/proc_mutex.c +++ b/locks/beos/proc_mutex.c @@ -114,12 +114,9 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_timedlock(apr_proc_mutex_t *mutex, int32 stat; if (atomic_add(&mutex->LockCount, 1) > 0) { - if (!timeout) { + if (timeout <= 0) { stat = B_TIMED_OUT; } - else if (timeout < 0) { - stat = acquire_sem(mutex->Lock); - } else { stat = acquire_sem_etc(mutex->Lock, 1, B_RELATIVE_TIMEOUT, timeout); |