[PD-dev] [PD] [packOSC] reentrancy problem

IOhannes m zmoelnig zmoelnig at iem.at
Thu Nov 19 10:53:07 CET 2015


On 2015-11-19 09:49, IOhannes m zmoelnig wrote:
> to keep the performance of a heap allocated buffer, i would suggest to:
> - use the original scheme for an "immediate" (non-recursive) message
> - detect recursion, and if so, allocate buffers on the stack.

attached is a patch that implements that.
the patch is against current HEAD, though i really worked on HEAD~1, so
it reverts a number of (imho unneccessary) things.

it only touches functions that actually do output things (minus the
revert-last-commit),

fgmaf
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reentrant-packOSC.patch
Type: text/x-patch
Size: 10611 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20151119/587adf14/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20151119/587adf14/attachment-0001.sig>


More information about the Pd-dev mailing list