1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_filter.hxx"
30 
31 #include "lateinitthread.hxx"
32 
33 //_______________________________________________
34 // includes
35 
36 //_______________________________________________
37 // namespace
38 
39 namespace filter{
40     namespace config{
41 
42 namespace css = ::com::sun::star;
43 
44 //_______________________________________________
45 // definitions
46 
47 /*-----------------------------------------------
48     14.08.2003 09:31
49 -----------------------------------------------*/
50 LateInitThread::LateInitThread()
51 {
52 }
53 
54 /*-----------------------------------------------
55     14.08.2003 08:42
56 -----------------------------------------------*/
57 LateInitThread::~LateInitThread()
58 {
59 }
60 
61 /*-----------------------------------------------
62     28.10.2003 09:30
63 -----------------------------------------------*/
64 void SAL_CALL LateInitThread::run()
65 {
66     // sal_True => It indicates using of this method by this thread
67     // The filter cache use this information to show an assertion
68     // for "optimization failure" in case the first calli of loadAll()
69     // was not this thread ...
70 
71     // Further please dont catch any exception here.
72     // May be they show the problem of a corrupted filter
73     // configuration, which is handled inside our event loop or desktop.main()!
74 
75     ::salhelper::SingletonRef< FilterCache > rCache;
76     rCache->load(FilterCache::E_CONTAINS_ALL, sal_True);
77 }
78 
79 void SAL_CALL LateInitThread::onTerminated()
80 {
81     delete this;
82 }
83 
84     } // namespace config
85 } // namespace filter
86