add non opaque return for switch_thread_cond_timedwait
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15322 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0208539da1
commit
5a08b02e20
|
@ -365,7 +365,13 @@ SWITCH_DECLARE(switch_status_t) switch_thread_cond_wait(switch_thread_cond_t *co
|
|||
|
||||
SWITCH_DECLARE(switch_status_t) switch_thread_cond_timedwait(switch_thread_cond_t *cond, switch_mutex_t *mutex, switch_interval_time_t timeout)
|
||||
{
|
||||
return apr_thread_cond_timedwait(cond, mutex, timeout);
|
||||
apr_status_t st = apr_thread_cond_timedwait(cond, mutex, timeout);
|
||||
|
||||
if (st == APR_TIMEUP) {
|
||||
st = SWITCH_STATUS_TIMEOUT;
|
||||
}
|
||||
|
||||
return st;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_thread_cond_signal(switch_thread_cond_t *cond)
|
||||
|
|
Loading…
Reference in New Issue