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
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to