music.columbia.edu - JSyn mailing list wrote:
The JSyn clock will not advance until you call sleepUntilTick(x). So
just make sure you have all your other data before you call it.
Thats, good to know. So, let's look at a multi-threaded app, where the synthContext is created, started and stopped in one location (not really a thread, just a method call e.g. start()), while data input, data output, and other functions are handled by separate threads.
Should sleepUntilTick() be called on all threads involved, and not only on the specific data handling thread? What happens if one thread calls sleepUntilTick() while another is not ready to do that yet, or should the control of when to sleep only happen from one thread?
Thanks for your time and patience.
Etienne.