[asterisk-dev] Seeking built-in channel waiter function

Kevin P. Fleming kpfleming at digium.com
Thu Oct 6 09:09:19 CDT 2011


On 10/06/2011 08:27 AM, Yaroslav Panych wrote:
> Hello
>
>
> Is there available in asterisk core and ready made function which does
> next work:
> As arguments it receives struct ast_channel* and thread
> synchronisation object(semaphore, mutex, cond, etc).
> This function waits for next frame in channel or when given sync
> object becomes signalled and then returns.

No, there isn't, mostly because there is no API in the POSIX arsenal 
that could be used to implement it atomically.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list