<div class="gmail_quote">On Thu, Jun 24, 2010 at 12:24 PM, Howard Chu <span dir="ltr">&lt;<a href="mailto:hyc@highlandsun.com">hyc@highlandsun.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Mikhail I. Izmestev wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
  Hi all.<br>
<br>
Is it possible to refactor interruption system to allow using librtmp in multi threaded applications?<br>
FFmpeg&#39;s interruption system is very easy and useful. We can create similar callback to handle<br>
interruptions.<br>
</blockquote>
<br></div>
I don&#39;t understand the question, please explain in more depth. What does multi-threading have to do with interruptions? I presume by &quot;interruption&quot; you mean &quot;signal&quot;  - signals and threaded code do not mix well.<div>
<div></div><div class="h5"><br></div></div></blockquote></div><br>He means have librtmp let users register a call-back function that librtmp calls whenever it is in a loop that might &#39;block&#39; on network access.  See url_set_interrupt_cb in FFmpeg&#39;s libavformat/avio.h file. <br>
<br>- Art<br clear="all"><br>-- <br><a href="http://www.xuggle.com/">http://www.xuggle.com/</a><br>xu‧ggle (zŭ&#39; gl) v. To freely encode, decode, and experience audio and video. <br><br>Use Xuggle to get the power of FFmpeg in Java.<br>