Lars Gullik Bjønnes wrote:

> Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> | I suspect that you'll be able to use it as-is meaning that all you
> | really have to do is:
> | 1. Rename it to something sensible ;-)
> | 2. Move the latex parsing stuff in Dekel's Converter into a separate
> | function.
> 
> I do not think that latex running should be moved out of lyx, what I
> would like is some async behaviour and more feedback during the run
> (number pages rendered (1. run), progress of rendered pages (further
> runs.).
> 
> I'd rather introduce some threads to lyx, and just say that all
> platforms that does not have treading just gets the sync behaviour
> instead.

Maybe. But we already have a mechanism for non-blocking forking of processes 
which will tell us when the process has finished. So we could 
for (;;) {
        fork latex run and subsequently
        receive notification of its finish
        parse the log file and, if finished, break;
}
If we used pipes to communicate between the two processes, we could also get 
the feedback that you desire during the run itself. The entire mechanism 
exists already elsewhere within LyX.

-- 
Angus

Reply via email to