1 /*************************************************************************
3 * Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith. *
4 * All rights reserved. Email: russ@q12.org Web: www.q12.org *
6 * Threading base wrapper class header file. *
7 * Copyright (C) 2011-2024 Oleh Derevenko. All rights reserved. *
8 * e-mail: odar@eleks.com (change all "a" to "e") *
10 * This library is free software; you can redistribute it and/or *
11 * modify it under the terms of EITHER: *
12 * (1) The GNU Lesser General Public License as published by the Free *
13 * Software Foundation; either version 2.1 of the License, or (at *
14 * your option) any later version. The text of the GNU Lesser *
15 * General Public License is included with this library in the *
17 * (2) The BSD-style license that is included with this library in *
18 * the file LICENSE-BSD.TXT. *
20 * This library is distributed in the hope that it will be useful, *
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files *
23 * LICENSE.TXT and LICENSE-BSD.TXT for more details. *
25 *************************************************************************/
28 * A default threading instance holder class definition
29 * Copyright (c) 2017-2024 Oleh Derevenko, odar@eleks.com (change all "a" to "e")
33 #ifndef _ODE__PRIVATE_DEFAULT_THREADING_H_
34 #define _ODE__PRIVATE_DEFAULT_THREADING_H_
37 #include <ode/threading.h>
40 class DefaultThreadingHolder
43 static bool initializeDefaultThreading();
44 static void finalizeDefaultThreading();
46 static dThreadingImplementationID
getDefaultThreadingImpl() { return m_defaultThreadingImpl
; }
47 static const dThreadingFunctionsInfo
*getDefaultThreadingFunctions() { return m_defaultThreadingFunctions
; }
50 static dThreadingImplementationID m_defaultThreadingImpl
;
51 static const dThreadingFunctionsInfo
*m_defaultThreadingFunctions
;
55 #endif // #ifndef _ODE__PRIVATE_DEFAULT_THREADING_H_