<div class="gmail_quote">On Thu, Jun 24, 2010 at 12:24 PM, Howard Chu <span dir="ltr"><<a href="mailto:hyc@highlandsun.com">hyc@highlandsun.com</a>></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's interruption system is very easy and useful. We can create similar callback to handle<br>
interruptions.<br>
</blockquote>
<br></div>
I don't understand the question, please explain in more depth. What does multi-threading have to do with interruptions? I presume by "interruption" you mean "signal" - 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 'block' on network access. See url_set_interrupt_cb in FFmpeg'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ŭ' gl) v. To freely encode, decode, and experience audio and video. <br><br>Use Xuggle to get the power of FFmpeg in Java.<br>