Changeset 44 for trunk/src/framework/Policies/ThreadingModel.h
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/framework/Policies/ThreadingModel.h
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 19 #ifndef MANGOS_THREADINGMODEL_H20 #define MANGOS_THREADINGMODEL_H21 #ifndef TRINITY_THREADINGMODEL_H 22 #define TRINITY_THREADINGMODEL_H 21 23 22 24 /** … … 27 29 #include "Platform/Define.h" 28 30 29 namespace MaNGOS31 namespace Trinity 30 32 { 31 33 inline void Guard(void *) {} 32 34 33 template<typename MUTEX> class MANGOS_DLL_DECL GeneralLock35 template<typename MUTEX> class TRINITY_DLL_DECL GeneralLock 34 36 { 35 37 public: … … 50 52 51 53 template <class T> 52 class MANGOS_DLL_DECL SingleThreaded54 class TRINITY_DLL_DECL SingleThreaded 53 55 { 54 56 public: … … 68 70 // object level lockable 69 71 template<class T, class MUTEX> 70 class MANGOS_DLL_DECL ObjectLevelLockable72 class TRINITY_DLL_DECL ObjectLevelLockable 71 73 { 72 74 public: … … 97 99 98 100 template<class T, class MUTEX> 99 class MANGOS_DLL_DECL ClassLevelLockable101 class TRINITY_DLL_DECL ClassLevelLockable 100 102 { 101 103 public: … … 121 123 } 122 124 123 template<class T, class MUTEX> MUTEX MaNGOS::ClassLevelLockable<T, MUTEX>::si_mtx;125 template<class T, class MUTEX> MUTEX Trinity::ClassLevelLockable<T, MUTEX>::si_mtx; 124 126 125 127 #define INSTANTIATE_CLASS_MUTEX(CTYPE,MUTEX) \ 126 template class MANGOS_DLL_DECL MaNGOS::ClassLevelLockable<CTYPE, MUTEX >128 template class TRINITY_DLL_DECL Trinity::ClassLevelLockable<CTYPE, MUTEX > 127 129 #endif