[chuck-users] implementing a "wait for signal with timeout"
haberg at math.su.se
Mon Jun 8 18:00:20 EDT 2009
On 8 Jun 2009, at 23:20, Robert Poor wrote:
> You approach looks just fine for situations where you generate notes
> at a "musically sensible" rate.
> My system isn't musically sensible: I'm generating dozens of "I just
> modified the end time of your event" messages every second, so
> sporking a shred and letting it die is not an option -- I'd be
> burning a megabyte of non-recoverable memory every second.
I am not sure exactly how 'chuck' does memory allocations, but I avoid
allocate any reference types in the threads. I have had the program
running for long time. Are you saying the threads themselves are
> I suspect Dan Trueman is doing the same thing I'm doing, namely
> spawning secondary timing shreds as needed, which can be kept around
> and re-used after they've done their duty.
One idea I have, but haven't tried, is making a thread an event
More information about the chuck-users