Hi all.. first time here<br><br>I&#39;ve to modify an application, right now it&#39;s using event_dispatch () and event_loopexit ().<br><br>Now, I&#39;ve to do the task in a thread, and I&#39;ve to control the thread.<br><br>
The basic thread function has to be something like:<br><br>&nbsp;&nbsp;&nbsp; while (events_running)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /* Events paused */<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (events_paused) continue;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; event_loop (EVLOOP_NONBLOCK);<br>&nbsp;&nbsp;&nbsp; }<br>
<br>My question is if event_dispatch () and the new code with event_loop will work in the same way.<br><br>Thanks for any reply, and sorry my english :) <br><br>-- Daniel<br>