<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I noticed that in the super class, that SingleStep() was public, but in BasicTaskScheduler it had become protected. Is this a typo?<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I changed it to public, and called SingleStep(200). It works great.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I was wondering if what a reasonable number for SingleStep() (which is passed to select(...) later) is?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Neil Alexander</DIV><DIV><BR><DIV><DIV>On Jul 7, 2005, at 11:45 PM, Neil Alexander wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hello All,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I just wanted to make sure I'm not doing something "suboptimal".</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I am integrating an RTSPServer inside my Macintosh application. Using the sample code, the very end of which is </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">env->taskScheduler().doEventLoop(); </SPAN></FONT><FONT class="Apple-style-span" color="#236E25" face="Monaco" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">// does not return</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Obviously I could put this into its own thread, but I thought that wasn't supposed to be necessary or desirable.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I wanted to InstallEventLoopTimer() and pass it a callback that calls the taskScheduler->SingleStep( 0 ) to give it time to do its thing.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Problem is, of course, is that BasicTaskScheduler->SingleStep() is a protected function, and does not appear to want to be called that way.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Am I missing something here? This seems like a completely reasonable approach to implementing the RTSPServer within a Mac Application.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Neil Alexander</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">live-devel mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:live-devel@lists.live.com">live-devel@lists.live.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.live.com/mailman/listinfo/live-devel">http://lists.live.com/mailman/listinfo/live-devel</A></DIV> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>