From 25fb3d749c3184b96c79352be4990c9b4fa6c602 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 13 Nov 2013 18:06:32 +0200 Subject: WIP: Background ahead-of-time OpenCL compilation Change-Id: I6e9906fb68a22eb0adab753726ec0d62dd05fe9b --- sc/inc/formulacell.hxx | 15 ++++++++++----- sc/inc/types.hxx | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'sc/inc') diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx index 68648fc1049a..656eebb49ac4 100644 --- a/sc/inc/formulacell.hxx +++ b/sc/inc/formulacell.hxx @@ -20,15 +20,19 @@ #ifndef SC_FORMULACELL_HXX #define SC_FORMULACELL_HXX -#include "formularesult.hxx" +#include + +#include -#include "formula/tokenarray.hxx" +#include +#include +#include #include -#include "svl/listener.hxx" +#include + #include "types.hxx" -#include -#include +#include "formularesult.hxx" namespace sc { @@ -54,6 +58,7 @@ struct SC_DLLPUBLIC ScFormulaCellGroup : boost::noncopyable ScTokenArray* mpCode; osl::Mutex maMutex; + osl::Condition maCompilationDone; sc::CompiledFormula* mpCompiledFormula; ScFormulaCell *mpTopCell; SCROW mnLength; // How many of these do we have ? diff --git a/sc/inc/types.hxx b/sc/inc/types.hxx index 170434124163..fc0e0e85c07b 100644 --- a/sc/inc/types.hxx +++ b/sc/inc/types.hxx @@ -59,6 +59,7 @@ const sal_uInt16 MatrixEdgeOpen = 32; enum GroupCalcState { GroupCalcEnabled, + GroupCalcOpenCLKernelCompilationScheduled, GroupCalcOpenCLKernelBinaryCreated, GroupCalcRunning, GroupCalcDisabled -- cgit