Kaydet (Commit) 03b55edc authored tarafından Markus Mohrhard's avatar Markus Mohrhard

external data: add the deterministic mode also for html

Change-Id: If253b2ff2b4f38ba45a2be7f66dfbcb65ed9be74
Reviewed-on: https://gerrit.libreoffice.org/41196Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst bc9a2ba6
...@@ -215,6 +215,7 @@ HTMLDataProvider::~HTMLDataProvider() ...@@ -215,6 +215,7 @@ HTMLDataProvider::~HTMLDataProvider()
{ {
if (mxHTMLFetchThread.is()) if (mxHTMLFetchThread.is())
{ {
SolarMutexReleaser aReleaser;
mxHTMLFetchThread->join(); mxHTMLFetchThread->join();
} }
} }
...@@ -229,6 +230,12 @@ void HTMLDataProvider::Import() ...@@ -229,6 +230,12 @@ void HTMLDataProvider::Import()
mpDoc->ResetClip(mpDocument, (SCTAB)0); mpDoc->ResetClip(mpDocument, (SCTAB)0);
mxHTMLFetchThread = new HTMLFetchThread(*mpDoc, maURL, maID, &maIdle); mxHTMLFetchThread = new HTMLFetchThread(*mpDoc, maURL, maID, &maIdle);
mxHTMLFetchThread->launch(); mxHTMLFetchThread->launch();
if (mbDeterministic)
{
SolarMutexReleaser aReleaser;
mxHTMLFetchThread->join();
}
} }
IMPL_LINK_NOARG(HTMLDataProvider, ImportFinishedHdl, Timer*, void) IMPL_LINK_NOARG(HTMLDataProvider, ImportFinishedHdl, Timer*, void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment