[Red5] Scheduled Jobs access in RED5

Storm storm.storm at gmail.com
Fri Apr 13 06:17:53 EDT 2007


Just out of my head:
if you need synchro between threads you'll need a "Shared semaphore". The
problem in your case is that when the scheduled work is launched your app
can be anywhere, so perhaps you should define some "critical sections" that
would be executed and test if you can follow only at the end of one of
those.

But that's prety ugly :(

Cheers

Carlos

On 4/13/07, Sri Kalyanaraman <sri at apaja.com> wrote:
>
> Hi Guys,
>
> I have the following situation. I have a main thread and starting a
> ScheduledJob. I want the main thread to wait till the scheduled job
> ends. I know I am doing a bit of 'synchronous' approach though threads
> are meant for asynchronous computing. Now the question is, how do i know
> that the scheduled job(s) end so that I can now start continuing in the
> main thread. I tried to access the scheduled jobs through the
> ApplicationAdapter but it looks like I can only add/remove jobs using
> it. Why not introducing a API to get the control of scheduled jobs? Can
> anyone pour ideas on this?
>
> Thanks in advance.
>
> -Sri.
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>



-- 
-------------------------------------------------------------------
If a man speaks in a forest and his wife is not there, is he still wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20070413/9238abfc/attachment.htm


More information about the Red5 mailing list