[Live-devel] Wedging live into a Mac application
Neil Alexander
nalex at hand-off.com
Fri Jul 8 03:04:00 PDT 2005
I noticed that in the super class, that SingleStep() was public, but
in BasicTaskScheduler it had become protected. Is this a typo?
I changed it to public, and called SingleStep(200). It works great.
I was wondering if what a reasonable number for SingleStep() (which
is passed to select(...) later) is?
Thanks!
Neil Alexander
On Jul 7, 2005, at 11:45 PM, Neil Alexander wrote:
> Hello All,
>
> I just wanted to make sure I'm not doing something "suboptimal".
>
> I am integrating an RTSPServer inside my Macintosh application.
> Using the sample code, the very end of which is
>
> env->taskScheduler().doEventLoop(); // does not return
>
> Obviously I could put this into its own thread, but I thought that
> wasn't supposed to be necessary or desirable.
>
> I wanted to InstallEventLoopTimer() and pass it a callback that
> calls the taskScheduler->SingleStep( 0 ) to give it time to do its
> thing.
>
> Problem is, of course, is that BasicTaskScheduler->SingleStep() is
> a protected function, and does not appear to want to be called that
> way.
>
> Am I missing something here? This seems like a completely
> reasonable approach to implementing the RTSPServer within a Mac
> Application.
>
> Thanks!
>
> Neil Alexander
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com
> http://lists.live.com/mailman/listinfo/live-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live.com/pipermail/live-devel/attachments/20050708/2d938146/attachment.html
More information about the live-devel
mailing list