[Libreoffice-commits] core.git: reportdesign/source

Stephan Bergmann sbergman at redhat.com
Wed Jun 4 14:34:54 PDT 2014


 reportdesign/source/core/api/ReportDefinition.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit faf40b99aaa5dd0264921224d3a04b80c2cef329
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jun 4 23:30:30 2014 +0200

    Missing launch of FactoryLoader threads
    
    ...regression introduced with 06a09dd0ad1e8afcf69e877501036e068d477438 "Join
    FactoryLoader threads."  (Also, hopefully, the original use of
    osl::Thread::setPriority was just cargo cult, as salhelper::Thread does not make
    that feature available to clients, so it had been dropped in
    06a09dd0ad1e8afcf69e877501036e068d477438.)
    
    Change-Id: I055c8fb20f3bbf13ba823436be24167d3446ed05

diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index 07a9421..c678d16 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -726,8 +726,9 @@ void OReportDefinition::init()
             const OUString* pEnd  = pIter + aMimeTypes.getLength();
             for ( ; pIter != pEnd; ++pIter )
             {
-                m_pImpl->m_aFactoryLoaders.push_back(
-                    new FactoryLoader(*pIter,m_aProps->m_xContext));
+                rtl::Reference<salhelper::Thread> xCreatorThread = new FactoryLoader(*pIter,m_aProps->m_xContext);
+                m_pImpl->m_aFactoryLoaders.push_back(xCreatorThread);
+                xCreatorThread->launch();
             }
         }
 


More information about the Libreoffice-commits mailing list