[PD] [packOSC] reentrancy problem

Martin Peach chakekatzil at gmail.com
Wed Nov 18 17:56:52 CET 2015


On Tue, Nov 17, 2015 at 4:15 AM, Roman Haefeli <reduzent at gmail.com> wrote:

> Hey, thanks for addressing the issue.
>
> On Mon, 2015-11-16 at 15:25 -0500, Martin Peach wrote:
> > So I updated packOSC in svn to detect reentrancy and post a message.
>
> The message says:
> error: packOSC: Use bundle to send multiple messages
>
> I find this message a bit misleading as I'm not at all trying to create
> a bundle. I'm simply creating an OSC packet that in returns triggers
> another OSC packet to be generated. I expect [packOSC] to treat them
> absolutely separately.
>
>
What should it say then? "packOSC is being asked to process another message
before it is finished with the current one"?



> > It seems too complicated to allow it.
>
...but I'll keep thinking about it. There may be a way.


>
> I see. It's not complicated at all on a patch level to make [packOSC]
> allow reentrancy. See attached patch. I can live easily without it being
> fixed in [packOSC].
>
> And this is the _expected_ output from my previous patch (and it
> actually _is_ the output of the currently attached patch with the
> work-around):
>
> FIRST: /i/am/reentrant 64
> SECOND: now
>
>
Here's another patch that does the same thing by using two [packOSC]s.

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151118/d5f15e51/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: packOSC-reentrancy-problem_fixed_another_way.pd
Type: text/x-puredata
Size: 569 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151118/d5f15e51/attachment.bin>


More information about the Pd-list mailing list