Hi, <br><br>First, I posted this message to irc but I realized that probably it should be here instead...<br><br>I&#39;m having troubles trying to understand the thread behaviour for the channel drivers. <br><br>Here is the whole history: <br>
<br>My channel driver starts a thread to wait for the device driver/sdk events.<br><br>Everything goes well but due to my design, in my bridge function I have to stop my playback functions and wait for an event certifying that the play process is really done. <br>
<br>I&#39;m doing it waiting for a flag being set in a while with a usleep inside. The problem is that when I&#39;m inside that loop, I cannot receive any events from my SDK. <br><br>For my understanding , every channel runs in your own thread and since I have a separated thread for receiving my events, why when I wait inside a channel driver callback function, my other thread doesn&#39;t runs?<br clear="all">
<br>I tried to use ast_cond_timedwait() function as well but the result seems the same.<br><br>Thanks in advance<br><br>-- <br>--------------<br>Paulo Garcia<br><br>