Cosmetic: Copyright years were updated
[ode.git] / ode / src / default_threading.h
blob63aa19bfd7a0e10633dcf417922ed2fdb4fc2ae6
1 /*************************************************************************
2 * *
3 * Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith. *
4 * All rights reserved. Email: russ@q12.org Web: www.q12.org *
5 * *
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") *
9 * *
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 *
16 * file LICENSE.TXT. *
17 * (2) The BSD-style license that is included with this library in *
18 * the file LICENSE-BSD.TXT. *
19 * *
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. *
24 * *
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
42 public:
43 static bool initializeDefaultThreading();
44 static void finalizeDefaultThreading();
46 static dThreadingImplementationID getDefaultThreadingImpl() { return m_defaultThreadingImpl; }
47 static const dThreadingFunctionsInfo *getDefaultThreadingFunctions() { return m_defaultThreadingFunctions; }
49 private:
50 static dThreadingImplementationID m_defaultThreadingImpl;
51 static const dThreadingFunctionsInfo *m_defaultThreadingFunctions;
55 #endif // #ifndef _ODE__PRIVATE_DEFAULT_THREADING_H_