LCOV - code coverage report
Current view: top level - sc/inc - clkernelthread.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  */
       9             : 
      10             : #ifndef INCLUDED_SC_INC_CLKERNELTHREAD_HXX
      11             : #define INCLUDED_SC_INC_CLKERNELTHREAD_HXX
      12             : 
      13             : #include <queue>
      14             : 
      15             : #include <osl/conditn.hxx>
      16             : #include <salhelper/thread.hxx>
      17             : 
      18             : #include <boost/noncopyable.hpp>
      19             : 
      20             : #include "scdllapi.h"
      21             : #include "formulacell.hxx"
      22             : 
      23             : namespace sc {
      24             : 
      25           0 : struct CLBuildKernelWorkItem
      26             : {
      27             :     enum { COMPILE, FINISH } meWhatToDo;
      28             :     ScFormulaCellGroupRef mxGroup;
      29             : };
      30             : 
      31             : class SC_DLLPUBLIC CLBuildKernelThread : public salhelper::Thread, boost::noncopyable
      32             : {
      33             : public:
      34             :     CLBuildKernelThread();
      35             :     virtual ~CLBuildKernelThread();
      36             : 
      37             :     void finish();
      38             : 
      39             :     void push(CLBuildKernelWorkItem item);
      40             : 
      41             :     osl::Condition maCompilationDoneCondition;
      42             : 
      43             : protected:
      44             :     virtual void execute() SAL_OVERRIDE;
      45             : 
      46             : private:
      47             :     osl::Mutex maQueueMutex;
      48             :     osl::Condition maQueueCondition;
      49             :     std::queue<CLBuildKernelWorkItem> maQueue;
      50             :     void produce();
      51             :     void consume();
      52             : };
      53             : 
      54             : }
      55             : 
      56             : #endif // INCLUDED_SC_INC_CLKERNELTHREAD_HXX
      57             : 
      58             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10