1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #include <osl/conditn.hxx>
13 #include <salhelper/thread.hxx>
15 #include "formulacell.hxx"
19 struct CLBuildKernelWorkItem
21 enum { COMPILE
, FINISH
} meWhatToDo
;
22 ScFormulaCellGroupRef mxGroup
;
25 class CLBuildKernelThread
: public salhelper::Thread
28 CLBuildKernelThread();
29 virtual ~CLBuildKernelThread();
33 void push(CLBuildKernelWorkItem item
);
36 virtual void execute();
40 osl::Condition maCondition
;
41 std::queue
<CLBuildKernelWorkItem
> maQueue
;
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */