<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I specified that I don't want to use threads...<br><br>Is there another way to solve?<br><br><br>--- On <b>Mon, 3/22/10, Matt Schuckmannn <i>&lt;matt@schuckmannacres.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Matt Schuckmannn &lt;matt@schuckmannacres.com&gt;<br>Subject: Re: [Live-devel] make the live555 scheduler working together with other schedulers<br>To: "LIVE555 Streaming Media - development &amp; use" &lt;live-devel@ns.live555.com&gt;<br>Date: Monday, March 22, 2010, 11:13 PM<br><br><div id="yiv678841473">



  
My approach for this kind of stuff has been to put them in separate
threads (I'd probably create a thread for Live555) and then just use
some sort of thread safe communication for passing events and data
between the 2, e.g. a socket or thread safe queue, etc. <br>
<br>
Matt S. <br>
<br>
<br>
On 3/22/2010 2:27 AM, Alberto Alberici wrote:
<blockquote type="cite">
  <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">Hi,<br>
        <br>
which is the best way to make the live555 library work together with
another library which has its own main scheduler (for example: qt),
_without using threads_?<br>
        <br>
I mean: qt has app.exec(), which doesn't return, and live555 has
doEventLoop(), which doesn't return.... Of course I could write
MyScheduler and then call singleStep(), which returns, instead of
calling doEventLoop(), but in this case singleStep() would return only
after the select() wait (and this would block the other library,
meanwhile) ....<br>
        <br>
thanks<br>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
  <pre><fieldset class="mimeAttachmentHeader"></fieldset><br>_______________________________________________<br>live-devel mailing list<br><a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:live-devel@lists.live555.com" target="_blank" href="/mc/compose?to=live-devel@lists.live555.com">live-devel@lists.live555.com</a><br><a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a><br>  </pre>
</blockquote>
 
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>live-devel mailing list<br><a ymailto="mailto:live-devel@lists.live555.com" href="/mc/compose?to=live-devel@lists.live555.com">live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br></div></blockquote></td></tr></table><br>