On 10/12/2009 15:43, Abdelrazak Younes wrote:
Pavel Sanda wrote:
Jean-Marc Lasgouttes wrote:
the real work
on our buffer structure can be fast enough IMO.
it is not? pavel
It is, and that is not the problem. The LateX export can happen in
the main thread. The problem is elsewhere in that we need finer
control of the 5 or 6 processes for latex compilation. So there's
basically two ways of doing it:
The easy way: let the whole latex compilation handling is done in a
new thread -> this wouldn't even require a cloning of the Buffer.
I implemented that approach now in trunk. But by cloning the Buffer as
this was the cleanest approach and less intrusive approach. It works
well except for the lack of feedback on the background processing.
Abdel.
Author: younes
Date: Fri Dec 18 23:51:06 2009
New Revision: 32584
URL:http://www.lyx.org/trac/changeset/32584
Log:
Detach Buffer preview and update preview in a new thread. Only for Qt4.4 users.
This new feature can be disabled by setting EXPORT_in_THREAD to 0 in
GuiView.cpp.
Two things are missing (but are fixable):
- the lack of feedback of the background latex compilation
- the error list is not shown in case of compilation error.
* Buffer:
- create a "cloned buffer" type.
- Transfer LFUN_MASTER_BUFFER_UPDATE, LFUN_MASTER_BUFFER_VIEW,
LFUN_BUFFER_UPDATE and LFUN_BUFFER_VIEW to GuiView. This is good itself as
these LFUN are GUI oriented.
* GuiView: detach the above LFUNs to a new thread as was already done for
autosave.