[PD] [packOSC] reentrancy problem

Roman Haefeli reduzent at gmail.com
Thu Nov 5 19:21:50 CET 2015


On Thu, 2015-11-05 at 11:11 -0500, Martin Peach wrote:

> 
> In your patch, if you put a [delay] after the bang outlet it will
> start an infinite loop at the delay interval. I'm not sure why the
> delay is necessary though, as [packOSC] should have finished
> processing the previous message by the time the next one arrives, even
> if it's a zero logical time delay.

Attached patch illustrates that you can simply buffer the output of
[packOSC] with [list append]. This fixes the reentrancy problem
_without_ affecting the execution order. A zero logical time delay
breaks the depth-first rule.

Roman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: packOSC-reentrancy-fixed.pd
Type: text/x-puredata
Size: 829 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151105/9eed45a7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151105/9eed45a7/attachment.sig>


More information about the Pd-list mailing list