1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef __FILTER_CONFIG_LATEINITTHREAD_HXX_ 25 #define __FILTER_CONFIG_LATEINITTHREAD_HXX_ 26 27 //_______________________________________________ 28 // includes 29 30 #include "filtercache.hxx" 31 #include <salhelper/singletonref.hxx> 32 #include <osl/thread.hxx> 33 34 //_______________________________________________ 35 // namespace 36 37 namespace filter{ 38 namespace config{ 39 40 //_______________________________________________ 41 // definitions 42 43 //_______________________________________________ 44 45 /** @short implements a thread, which will update the 46 global filter cache of an office, after its 47 startup was finished. 48 49 @descr Its started by a LateInitListener instance ... 50 51 @see LateInitListener 52 53 @attention The filter cache will be blocked during this thrad runs! 54 */ 55 class LateInitThread : public ::osl::Thread 56 { 57 //------------------------------------------- 58 // native interface 59 60 public: 61 62 //--------------------------------------- 63 // ctor/dtor 64 65 /** @short initialize new instance of this class. 66 */ 67 LateInitThread(); 68 69 //--------------------------------------- 70 71 /** @short standard dtor. 72 */ 73 virtual ~LateInitThread(); 74 75 //--------------------------------------- 76 77 /** @short thread function. 78 */ 79 virtual void SAL_CALL run(); 80 81 virtual void SAL_CALL onTerminated(); 82 }; 83 84 } // namespace config 85 } // namespace filter 86 87 #endif // __FILTER_CONFIG_LATEINITTHREAD_HXX_ 88