xref: /trunk/main/desktop/source/app/omutexmember.hxx (revision 0a1e2f0e)
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 __FRAMEWORK_OMUTEXMEMBER_HXX_
25 #define __FRAMEWORK_OMUTEXMEMBER_HXX_
26 
27 //_________________________________________________________________________________________________________________
28 //	includes
29 //_________________________________________________________________________________________________________________
30 
31 #include <osl/mutex.hxx>
32 
33 //_________________________________________________________________________________________________________________
34 //	namespace
35 //_________________________________________________________________________________________________________________
36 
37 //_________________________________________________________________________________________________________________
38 //	definitions
39 //_________________________________________________________________________________________________________________
40 
41 /*-************************************************************************************************************//**
42 	@short			definition of a public mutex member
43 	@descr			You can use this struct as baseclass to get a public mutex member for right initialization.
44 					Don't use it as member. You can't guarantee the right order of initialization of baseclasses then!
45 					And some other helper classes share the mutex with an implementation and must have a valid one.
46 
47 	@seealso		See implementation of constructors in derived classes for further informations!
48 
49 	@devstatus		ready
50 *//*-*************************************************************************************************************/
51 
52 struct OMutexMember
53 {
54 	::osl::Mutex	m_aMutex;
55 };
56 
57 #endif	//	#ifndef __FRAMEWORK_OMUTEXMEMBER_HXX_
58