mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
don't eat a CPU core when using Qt < 4.4 or EXPORT_in_THREAD == 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36208 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0a6f607c81
commit
433f4621cc
@ -2951,13 +2951,15 @@ bool GuiView::GuiViewPrivate::asyncBufferProcessing(
|
|||||||
// We are asynchronous, so we don't know here anything about the success
|
// We are asynchronous, so we don't know here anything about the success
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
|
if (syncFunc) {
|
||||||
|
// TODO check here if it breaks exporting with Qt < 4.4
|
||||||
bool const update_unincluded =
|
bool const update_unincluded =
|
||||||
used_buffer->params().maintain_unincluded_children &&
|
used_buffer->params().maintain_unincluded_children &&
|
||||||
!used_buffer->params().getIncludedChildren().empty();
|
!used_buffer->params().getIncludedChildren().empty();
|
||||||
if (syncFunc) {
|
|
||||||
return (used_buffer->*syncFunc)(format, true, update_unincluded);
|
return (used_buffer->*syncFunc)(format, true, update_unincluded);
|
||||||
} else if (previewFunc) {
|
} else if (previewFunc) {
|
||||||
return (used_buffer->*previewFunc)(format, update_unincluded);
|
// TODO includeall must be false or we get a 100% busy thread, a bug?
|
||||||
|
return (used_buffer->*previewFunc)(format, false);
|
||||||
}
|
}
|
||||||
(void) asyncFunc;
|
(void) asyncFunc;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user