1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2003 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGLOCKPOLICIES_H_
40 #define _OSGLOCKPOLICIES_H_
45 #include "OSGBaseTypes.h"
46 #include "OSGBaseFunctions.h"
47 #include "OSGBaseInitFunctions.h"
51 #include <boost/bind.hpp>
55 /*! \ingroup GrpBaseMultiThreading
56 \ingroup GrpLibOSGBase
63 /*========================== PUBLIC =================================*/
67 /*---------------------------------------------------------------------*/
68 /*! \name Constructors */
74 /*---------------------------------------------------------------------*/
75 /*! \name Destructor */
78 virtual ~NoLockPolicy(void);
81 /*---------------------------------------------------------------------*/
82 /*! \name Reference Counting */
90 /*========================= PROTECTED ===============================*/
94 /*========================== PRIVATE ================================*/
98 /*!\brief prohibit default function (move to 'public' if needed) */
99 NoLockPolicy(const NoLockPolicy
&source
);
100 void operator =(const NoLockPolicy
&source
);
104 /*! \ingroup GrpBaseMultiThreading
105 \ingroup GrpLibOSGBase
109 class SingleLockPolicy
112 /*========================== PUBLIC =================================*/
116 /*---------------------------------------------------------------------*/
117 /*! \name Constructors */
120 SingleLockPolicy(void);
123 /*---------------------------------------------------------------------*/
124 /*! \name Destructor */
127 virtual ~SingleLockPolicy(void);
130 /*---------------------------------------------------------------------*/
131 /*! \name Reference Counting */
139 /*========================= PROTECTED ===============================*/
145 /*========================== PRIVATE ================================*/
149 /*!\brief prohibit default function (move to 'public' if needed) */
150 SingleLockPolicy(const SingleLockPolicy
&source
);
151 void operator =(const SingleLockPolicy
&source
);
155 /*! \ingroup GrpBaseMultiThreading
156 \ingroup GrpLibOSGBase
160 class SingleStaticInitLockPolicy
163 /*========================== PUBLIC =================================*/
167 /*---------------------------------------------------------------------*/
168 /*! \name Constructors */
171 SingleStaticInitLockPolicy(void);
174 /*---------------------------------------------------------------------*/
175 /*! \name Destructor */
178 virtual ~SingleStaticInitLockPolicy(void);
181 /*---------------------------------------------------------------------*/
182 /*! \name Reference Counting */
186 /*---------------------------------------------------------------------*/
187 /*! \name Reference Counting */
195 /*========================= PROTECTED ===============================*/
204 /*========================== PRIVATE ================================*/
208 /*!\brief prohibit default function (move to 'public' if needed) */
209 SingleStaticInitLockPolicy(const SingleStaticInitLockPolicy
&source
);
210 void operator =(const SingleStaticInitLockPolicy
&source
);
215 #include "OSGLockPolicies.inl"
217 #endif /* _OSGLOCKPOLICIES_H_ */