diff options
author | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-11-30 14:36:24 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-12-12 16:48:59 +0100 |
commit | 330b1b5bcec06e3a8d35413ff921fa219bc0a8dc (patch) | |
tree | ef26447ded17a84b7997402da9f3cbb841e3e70a /sc/inc/calcconfig.hxx | |
parent | fdfdb98824103639ed4225e5b1f11629d48db27e (diff) |
Do not use threading for formula group if...
...there is at least one opcode in the token array that is
in the blacklist set of opcodes for threading.
Cleaned up the logic by removing FormulaVectorEnabledForThreading
from ScFormulaVectorState enum and created two separate boolean
fields in ScTokenArray to keep track of whether OpenCL or threading
could be used.
Change-Id: Ieca0004b33a3cfea6ca5c0ff90bc8cea8746d102
Reviewed-on: https://gerrit.libreoffice.org/45564
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/inc/calcconfig.hxx')
-rw-r--r-- | sc/inc/calcconfig.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/calcconfig.hxx b/sc/inc/calcconfig.hxx index eaf4f36f143b..77b16ab92162 100644 --- a/sc/inc/calcconfig.hxx +++ b/sc/inc/calcconfig.hxx @@ -49,6 +49,7 @@ struct SC_DLLPUBLIC ScCalcConfig bool mbHasStringRefSyntax:1; static bool isOpenCLEnabled(); + static bool isThreadingEnabled(); static bool isSwInterpreterEnabled(); bool mbOpenCLSubsetOnly:1; |