Unfortunately it would take a bit too much effort to properly explain multi-threading and the potential problems and solutions on a forum post, so I suggest you search for some resources on the subject.. but basically it comes down to this: can you prove that it's thread-safe?camsr wrote: My original idea was to use a circular buffer and iterator that loops around the end of an array, with the index being incremented per sample. Is this thread safe? Because the way it works now, the values it needs from processReplacing are only received at the end of the block. I want the editor to receive those values, on its interrupt. I don't understand multi threading, but thanks for any advice.
If you can't prove it, it probably isn't.
