If I issue a clock_delay(x->x_clock, 0), will the registered tick function be executed in the same clock tick, or will it always wait for the next clock tick?
Basically, I am looking for a way to schedule something "as soon as possible".
.hc
------------------------------------------------------------------------
Man has survived hitherto because he was too ignorant to know how to realize his wishes. Now that he can realize them, he must either change them, or perish. -William Carlos Williams
It's indeed "as soon as possible", except that if someone else has previously scheduled something ASAP that ASAP will get in earlier than yours. You can chain arbitrarily many clock_delay(..., 0) calls without DSP or event polling getting in between.
cheers Miller
On Thu, Dec 28, 2006 at 11:05:36PM -0500, Hans-Christoph Steiner wrote:
If I issue a clock_delay(x->x_clock, 0), will the registered tick function be executed in the same clock tick, or will it always wait for the next clock tick?
Basically, I am looking for a way to schedule something "as soon as possible".
.hc
Man has survived hitherto because he was too ignorant to know how to realize his wishes. Now that he can realize them, he must either change them, or perish. -William Carlos Williams
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
On Thu, 28 Dec 2006, Miller Puckette wrote:
It's indeed "as soon as possible", except that if someone else has previously scheduled something ASAP that ASAP will get in earlier than yours. You can chain arbitrarily many clock_delay(..., 0) calls without DSP or event polling getting in between.
What if negative delays are used?
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
That would be an error (silently 'corrected' to delay zero).
On Sat, Dec 30, 2006 at 03:12:19PM -0500, Mathieu Bouchard wrote:
On Thu, 28 Dec 2006, Miller Puckette wrote:
It's indeed "as soon as possible", except that if someone else has previously scheduled something ASAP that ASAP will get in earlier than yours. You can chain arbitrarily many clock_delay(..., 0) calls without DSP or event polling getting in between.
What if negative delays are used?
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - t?l:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montr?al QC Canada
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev