Displaying 1 result from an estimated 1 matches for "ast_sched_wait".
2003 Oct 27
1
Fwd: Re: Asterisk on FreeBSD
...ost looks like a bug in Asterisk doesn't it?
Why call poll() with a zero timeout while passing only one FD?
and then why do the read when there is no data?
Read the man pages for all the system calls
Take a look at the source chan_sip.c
/* Wait for sched or io */
res = ast_sched_wait(sched);
if ((res < 0) || (res > 1000))
res = 1000;
res = ast_io_wait(io, res);
ast_pthread_mutex_lock(&monlock);
if (res >= 0)
ast_sched_runq(sched);
ast_pth...