diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-25 15:09:10 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-25 15:10:32 -0500 |
commit | 0ef799a1fd4cb9ffa5488b218239a4c9d0137b42 (patch) | |
tree | 65afd53234308eb7af5acc44451f464740cfdb71 /sc | |
parent | 4e736a8b8ce4d69c5be924b77bb07bd19b1e4d73 (diff) |
Really disable multi-threaded sheet parsing.
It will be removed later.
Change-Id: Ia6c2711169cd45056cbf85bc8028627d6f57b44b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/workbookfragment.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index 81eb2ed62ffd..f8b5ef7e3bdf 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -58,6 +58,8 @@ #include <queue> #include <boost/scoped_ptr.hpp> +#define MULTI_THREAD_SHEET_PARSING 0 + #include "oox/ole/vbaproject.hxx" namespace oox { @@ -203,10 +205,12 @@ const RecordInfo* WorkbookFragment::getRecordInfos() const namespace { -class WorkerThread; - typedef std::pair<WorksheetGlobalsRef, FragmentHandlerRef> SheetFragmentHandler; typedef std::vector<SheetFragmentHandler> SheetFragmentVector; + +#if MULTI_THREAD_SHEET_PARSING + +class WorkerThread; typedef rtl::Reference<WorkerThread> WorkerThreadRef; struct WorkerThreadData @@ -311,9 +315,11 @@ public: } }; +#endif + void importSheetFragments( WorkbookFragment& rWorkbookHandler, SheetFragmentVector& rSheets ) { -#if 0 // threaded version +#if MULTI_THREAD_SHEET_PARSING // threaded version size_t nThreadCount = 3; if (nThreadCount > rSheets.size()) nThreadCount = rSheets.size(); |