[PD-dev] Thread concurrency issue

Pierre Guillot guillotpierre6 at gmail.com
Sat Jan 13 09:47:45 CET 2018


I encountered a bad thread concurrency issue using PD in a multi
instance/multi thread context. The behavior of the increment and decrement
of the static variable *stackcount* is undefined and results mostly in
stack overflow. The simplest solution seems to set the variable a TLS with
PERTHREAD. Here is a PR that solves the issue:
https://github.com/pure-data/pure-data/pull/288.

Cheers,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20180113/d326d0e2/attachment.html>


More information about the Pd-dev mailing list