[Red5] using Thread.sleep in red5 app

Aljosa Mohorovic aljosa.mohorovic at gmail.com
Mon Jun 15 13:19:42 PDT 2009


does anybody have a suggestion (dirty hack?) how to temporarily
replace "Thread.sleep(3000)" with some other code until i find some
time to refactor my app?
maybe something like:
----------------------------------------------------------------
long t1 = System.nanoTime();
while ((System.nanoTime() - t1) < 3*1e9) {}
----------------------------------------------------------------

i guess trying to use "this.wait(3000);" has same effect as Thread.sleep()?

any suggestion is appreciated.

Aljosa Mohorovic



More information about the Red5 mailing list