Re: SDF stalling when using synchronizeToRealTime

2006-09-20 Thread Christopher Brooks
Hi JS, Thanks for the patch, I created a test and then folded your change in to SDFDirector.prefire() About the while loop in prefire(), if the _workspace.wait() was interrupted, then I think we would want to loop back through until the time was right. I'm not sure about this, but that's my gues

Re: SDF stalling when using synchronizeToRealTime

2006-09-19 Thread JS
JS wrote: The way this part of the code is implemented is rather odd however. I wonder why there is a while(true) loop if, anyway, we are calling the wait() method. Clearly, the while loop will always run just once. I guess we could simplify the code by removing the while loop. I also find

Re: SDF stalling when using synchronizeToRealTime

2006-09-19 Thread JS
Hi, I've managed to fix it. The problem was that sometimes, the method Object.wait(timeout) was called with timeout = 0. According to java documentation: " If timeout is zero, however, then real time is not taken into consideration and the thread simply waits until notified." A small patch o

SDF stalling when using synchronizeToRealTime

2006-09-19 Thread JS
Hi all, I'm currently testing the real-time possibilities of PtII. I'm running under Eclipse with a Mac Book Pro. When trying to execute the following test app, I get a strange behavior: after some time (not always the same) the application stalls. That is, I get output like: "hello world" "h