diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-11-13 18:06:32 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2013-11-20 18:23:05 +0000 |
commit | 25fb3d749c3184b96c79352be4990c9b4fa6c602 (patch) | |
tree | 21f776990e73bbbf140103b4c236478fd53665e6 /sc/source/core/data | |
parent | 3e8df9eb9535349b2bbb1394794cffcae4b067ac (diff) |
WIP: Background ahead-of-time OpenCL compilation
Change-Id: I6e9906fb68a22eb0adab753726ec0d62dd05fe9b
Diffstat (limited to 'sc/source/core/data')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index a864b1d7be9d..321c6af4ea3f 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -445,9 +445,12 @@ ScFormulaCellGroup::~ScFormulaCellGroup() void ScFormulaCellGroup::scheduleCompilation() { + osl::ResettableMutexGuard aGuard(maMutex); + meCalcState = sc::GroupCalcOpenCLKernelCompilationScheduled; sc::CLBuildKernelWorkItem aWorkItem; aWorkItem.meWhatToDo = sc::CLBuildKernelWorkItem::COMPILE; aWorkItem.mxGroup = this; + aGuard.clear(); mxCLKernelThread->push(aWorkItem); } |