RFC: concurrent forks of graphics conversions

Pavel Sanda sanda at lyx.org
Sat Sep 24 20:06:36 UTC 2022


On Sat, Sep 24, 2022 at 02:11:36PM -0400, Scott Kostyshak wrote:
> Each iteration of the while loop constructs a new ForkedCall instance.
> call.startScript() then forks the process.

I see now, you are right. If I understand the logic now (basically each loop
iteration triggering new callNext via callback), the problem is sharing
callQueue_ in between threads and you need to guard the access by some mutex or
similar. And the same for nforks_current variable and any shared variable
recursively accessed in stopCaller...
If I got it right (not necessarily) then also stopCaller is called for each
iteration loop at the end?

Pavel


More information about the lyx-devel mailing list