Permalink
Browse files

[7810] Moved ZThread related code on ACE framework.

Remove ZThread source code from mangos.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
  • Loading branch information...
Ambal authored and AlexDereka committed May 11, 2009
1 parent 04a788b commit 00c7d15a78b1dcdbf888b768c55424183b2231e4
Showing with 684 additions and 21,041 deletions.
  1. +3 −6 Makefile.am
  2. +0 −1 configure.ac
  3. +0 −48 dep/include/Makefile.am
  4. +0 −74 dep/include/zthread/AtomicCount.h
  5. +0 −328 dep/include/zthread/Barrier.h
  6. +0 −319 dep/include/zthread/BiasedReadWriteLock.h
  7. +0 −245 dep/include/zthread/BlockingQueue.h
  8. +0 −387 dep/include/zthread/BoundedQueue.h
  9. +0 −86 dep/include/zthread/Cancelable.h
  10. +0 −74 dep/include/zthread/ClassLockable.h
  11. +0 −124 dep/include/zthread/ConcurrentExecutor.h
  12. +0 −154 dep/include/zthread/Condition.h
  13. +0 −218 dep/include/zthread/Config.h
  14. +0 −289 dep/include/zthread/CountedPtr.h
  15. +0 −138 dep/include/zthread/CountingSemaphore.h
  16. +0 −244 dep/include/zthread/Exceptions.h
  17. +0 −94 dep/include/zthread/Executor.h
  18. +0 −183 dep/include/zthread/FairReadWriteLock.h
  19. +0 −111 dep/include/zthread/FastMutex.h
  20. +0 −106 dep/include/zthread/FastRecursiveMutex.h
  21. +0 −511 dep/include/zthread/Guard.h
  22. +0 −103 dep/include/zthread/GuardedClass.h
  23. +0 −96 dep/include/zthread/Lockable.h
  24. +0 −197 dep/include/zthread/LockedQueue.h
  25. +0 −345 dep/include/zthread/MonitoredQueue.h
  26. +0 −135 dep/include/zthread/Mutex.h
  27. +0 −60 dep/include/zthread/NonCopyable.h
  28. +0 −178 dep/include/zthread/PoolExecutor.h
  29. +0 −39 dep/include/zthread/Priority.h
  30. +0 −89 dep/include/zthread/PriorityCondition.h
  31. +0 −93 dep/include/zthread/PriorityInheritanceMutex.h
  32. +0 −86 dep/include/zthread/PriorityMutex.h
  33. +0 −111 dep/include/zthread/PrioritySemaphore.h
  34. +0 −189 dep/include/zthread/Queue.h
  35. +0 −80 dep/include/zthread/ReadWriteLock.h
  36. +0 −123 dep/include/zthread/RecursiveMutex.h
  37. +0 −58 dep/include/zthread/Runnable.h
  38. +0 −150 dep/include/zthread/Semaphore.h
  39. +0 −249 dep/include/zthread/Singleton.h
  40. +0 −126 dep/include/zthread/SynchronousExecutor.h
  41. +0 −78 dep/include/zthread/Task.h
  42. +0 −381 dep/include/zthread/Thread.h
  43. +0 −382 dep/include/zthread/ThreadLocal.h
  44. +0 −108 dep/include/zthread/ThreadLocalImpl.h
  45. +0 −136 dep/include/zthread/ThreadedExecutor.h
  46. +0 −225 dep/include/zthread/Time.h
  47. +0 −94 dep/include/zthread/Waitable.h
  48. +0 −67 dep/include/zthread/ZThread.h
  49. +1 −1 dep/src/Makefile.am
  50. +0 −57 dep/src/zthread/AtomicCount.cxx
  51. +0 −54 dep/src/zthread/ConcurrentExecutor.cxx
  52. +0 −80 dep/src/zthread/Condition.cxx
  53. +0 −377 dep/src/zthread/ConditionImpl.h
  54. +0 −92 dep/src/zthread/CountingSemaphore.cxx
  55. +0 −32 dep/src/zthread/Debug.h
  56. +0 −63 dep/src/zthread/DeferredInterruptionScope.h
  57. +0 −71 dep/src/zthread/FastLock.h
  58. +0 −53 dep/src/zthread/FastMutex.cxx
  59. +0 −74 dep/src/zthread/FastRecursiveLock.h
  60. +0 −53 dep/src/zthread/FastRecursiveMutex.cxx
  61. +0 −99 dep/src/zthread/IntrusivePtr.h
  62. +0 −132 dep/src/zthread/Makefile.am
  63. +0 −39 dep/src/zthread/Monitor.cxx
  64. +0 −60 dep/src/zthread/Monitor.h
  65. +0 −68 dep/src/zthread/Mutex.cxx
  66. +0 −377 dep/src/zthread/MutexImpl.h
  67. +0 −629 dep/src/zthread/PoolExecutor.cxx
  68. +0 −80 dep/src/zthread/PriorityCondition.cxx
  69. +0 −109 dep/src/zthread/PriorityInheritanceMutex.cxx
  70. +0 −69 dep/src/zthread/PriorityMutex.cxx
  71. +0 −104 dep/src/zthread/PrioritySemaphore.cxx
  72. +0 −61 dep/src/zthread/RecursiveMutex.cxx
  73. +0 −286 dep/src/zthread/RecursiveMutexImpl.cxx
  74. +0 −78 dep/src/zthread/RecursiveMutexImpl.h
  75. +0 −96 dep/src/zthread/Scheduling.h
  76. +0 −101 dep/src/zthread/Semaphore.cxx
  77. +0 −348 dep/src/zthread/SemaphoreImpl.h
  78. +0 −151 dep/src/zthread/State.h
  79. +0 −179 dep/src/zthread/Status.h
  80. +0 −90 dep/src/zthread/SynchronousExecutor.cxx
  81. +0 −52 dep/src/zthread/TSS.h
  82. +0 −127 dep/src/zthread/Thread.cxx
  83. +0 −470 dep/src/zthread/ThreadImpl.cxx
  84. +0 −122 dep/src/zthread/ThreadImpl.h
  85. +0 −66 dep/src/zthread/ThreadLocalImpl.cxx
  86. +0 −54 dep/src/zthread/ThreadOps.cxx
  87. +0 −67 dep/src/zthread/ThreadOps.h
  88. +0 −266 dep/src/zthread/ThreadQueue.cxx
  89. +0 −134 dep/src/zthread/ThreadQueue.h
  90. +0 −464 dep/src/zthread/ThreadedExecutor.cxx
  91. +0 −45 dep/src/zthread/Time.cxx
  92. +0 −86 dep/src/zthread/TimeStrategy.h
  93. +0 −95 dep/src/zthread/config.h
  94. +0 −73 dep/src/zthread/linux/AtomicCount.cxx
  95. +0 −117 dep/src/zthread/linux/AtomicFastLock.h
  96. +0 −83 dep/src/zthread/linux/FastRecursiveLock.h
  97. +0 −139 dep/src/zthread/macos/FastLock.h
  98. +0 −280 dep/src/zthread/macos/Monitor.cxx
  99. +0 −156 dep/src/zthread/macos/Monitor.h
  100. +0 −120 dep/src/zthread/macos/TSS.h
  101. +0 −103 dep/src/zthread/macos/ThreadOps.cxx
  102. +0 −167 dep/src/zthread/macos/ThreadOps.h
  103. +0 −86 dep/src/zthread/macos/UpTimeStrategy.h
  104. +0 −146 dep/src/zthread/posix/ConditionRecursiveLock.h
  105. +0 −121 dep/src/zthread/posix/FastLock.h
  106. +0 −84 dep/src/zthread/posix/FtimeStrategy.h
  107. +0 −75 dep/src/zthread/posix/GetTimeOfDayStrategy.h
  108. +0 −257 dep/src/zthread/posix/Monitor.cxx
  109. +0 −153 dep/src/zthread/posix/Monitor.h
  110. +0 −51 dep/src/zthread/posix/PriorityOps.h
  111. +0 −104 dep/src/zthread/posix/TSS.h
  112. +0 −147 dep/src/zthread/posix/ThreadOps.cxx
  113. +0 −154 dep/src/zthread/posix/ThreadOps.h
  114. +0 −122 dep/src/zthread/solaris/FastRecursiveLock.h
  115. +0 −173 dep/src/zthread/vanilla/DualMutexRecursiveLock.h
  116. +0 −100 dep/src/zthread/vanilla/SimpleAtomicCount.cxx
  117. +0 −130 dep/src/zthread/vanilla/SimpleRecursiveLock.h
  118. +0 −60 dep/src/zthread/win32/AtomicCount.cxx
  119. +0 −122 dep/src/zthread/win32/AtomicFastLock.h
  120. +0 −158 dep/src/zthread/win32/AtomicFastRecursiveLock.h
  121. +0 −146 dep/src/zthread/win32/FastLock.h
  122. +0 −109 dep/src/zthread/win32/FastRecursiveLock.h
  123. +0 −242 dep/src/zthread/win32/Monitor.cxx
  124. +0 −153 dep/src/zthread/win32/Monitor.h
  125. +0 −108 dep/src/zthread/win32/PerformanceCounterStrategy.h
  126. +0 −108 dep/src/zthread/win32/TSS.h
  127. +0 −197 dep/src/zthread/win32/ThreadOps.cxx
  128. +0 −152 dep/src/zthread/win32/ThreadOps.h
  129. +0 −115 dep/src/zthread/win9x/AtomicCount.cxx
  130. +0 −130 dep/src/zthread/win9x/AtomicFastLock.h
  131. +2 −2 src/game/InstanceSaveMgr.h
  132. +8 −13 src/game/Map.h
  133. +2 −2 src/game/MapManager.cpp
  134. +3 −3 src/game/MapManager.h
  135. +3 −3 src/game/ObjectAccessor.cpp
  136. +4 −4 src/game/ObjectAccessor.h
  137. +2 −2 src/game/World.h
  138. +2 −2 src/game/WorldLog.cpp
  139. +2 −2 src/game/WorldLog.h
  140. +1 −2 src/game/WorldSession.h
  141. +1 −1 src/mangosd/CliRunnable.h
  142. +2 −2 src/mangosd/Makefile.am
  143. +11 −10 src/mangosd/Master.cpp
  144. +1 −1 src/mangosd/WorldRunnable.cpp
  145. +1 −1 src/mangosd/WorldRunnable.h
  146. +8 −8 src/realmd/AuthSocket.cpp
  147. +1 −2 src/realmd/AuthSocket.h
  148. +2 −2 src/realmd/Makefile.am
  149. +8 −4 src/shared/Common.h
  150. +2 −1 src/shared/Database/Database.cpp
  151. +4 −5 src/shared/Database/Database.h
  152. +2 −2 src/shared/Database/DatabaseImpl.h
  153. +14 −11 src/shared/Database/DatabaseMysql.cpp
  154. +4 −3 src/shared/Database/DatabaseMysql.h
  155. +14 −12 src/shared/Database/DatabasePostgre.cpp
  156. +2 −5 src/shared/Database/DatabasePostgre.h
  157. +1 −1 src/shared/Database/QueryResult.h
  158. +1 −1 src/shared/Database/SqlDelayThread.cpp
  159. +8 −7 src/shared/Database/SqlDelayThread.h
  160. +3 −4 src/shared/Database/SqlOperations.h
  161. +144 −0 src/shared/LockedQueue.h
  162. +1 −1 src/shared/Log.h
  163. +3 −0 src/shared/Makefile.am
  164. +202 −0 src/shared/Threading.cpp
  165. +99 −0 src/shared/Threading.h
  166. +7 −13 src/shared/Util.cpp
  167. +1 −1 src/shared/revision_nr.h
  168. +4 −4 win/VC71/realmd.vcproj
  169. +4 −4 win/VC71/script.vcproj
  170. +11 −0 win/VC71/shared.vcproj
  171. +0 −381 win/VC71/zthread.vcproj
  172. +12 −12 win/VC80/realmd.vcproj
  173. +12 −12 win/VC80/script.vcproj
  174. +18 −0 win/VC80/shared.vcproj
  175. +0 −793 win/VC80/zthread.vcproj
  176. +12 −12 win/VC90/realmd.vcproj
  177. +13 −13 win/VC90/script.vcproj
  178. +18 −0 win/VC90/shared.vcproj
  179. +0 −799 win/VC90/zthread.vcproj
  180. +0 −4 win/mangosdVC71.sln
  181. +0 −2 win/mangosdVC80.sln
  182. +0 −2 win/mangosdVC90.sln
View
@@ -29,8 +29,7 @@ EXTRA_DIST = \
win/VC71/realmd.vcproj \
win/VC71/shared.vcproj \
win/VC71/zlib.vcproj \
- win/VC71/g3dlite.vcproj \
- win/VC71/zthread.vcproj
+ win/VC71/g3dlite.vcproj
# Win32 project workspace for Visual Studio .NET 2005
EXTRA_DIST += \
@@ -41,8 +40,7 @@ EXTRA_DIST += \
win/VC80/realmd.vcproj \
win/VC80/shared.vcproj \
win/VC80/zlib.vcproj \
- win/VC80/g3dlite.vcproj \
- win/VC80/zthread.vcproj
+ win/VC80/g3dlite.vcproj
# Win32 project workspace for Visual Studio .NET 2008
EXTRA_DIST += \
@@ -53,6 +51,5 @@ EXTRA_DIST += \
win/VC90/realmd.vcproj \
win/VC90/shared.vcproj \
win/VC90/zlib.vcproj \
- win/VC90/g3dlite.vcproj \
- win/VC90/zthread.vcproj
+ win/VC90/g3dlite.vcproj
View
@@ -288,7 +288,6 @@ AC_CONFIG_FILES([
dep/src/g3dlite/Makefile
dep/src/sockets/Makefile
dep/src/zlib/Makefile
- dep/src/zthread/Makefile
dep/Makefile
doc/Doxyfile
doc/Makefile
View
@@ -197,54 +197,6 @@ EXTRA_DIST += \
zlib/zconf.h \
zlib/zlib.h
-# ZThread header files for Win32 builds
-EXTRA_DIST += \
- zthread/AtomicCount.h \
- zthread/Barrier.h \
- zthread/BiasedReadWriteLock.h \
- zthread/BlockingQueue.h \
- zthread/BoundedQueue.h \
- zthread/Cancelable.h \
- zthread/ClassLockable.h \
- zthread/ConcurrentExecutor.h \
- zthread/Condition.h \
- zthread/Config.h \
- zthread/CountedPtr.h \
- zthread/CountingSemaphore.h \
- zthread/Exceptions.h \
- zthread/Executor.h \
- zthread/FairReadWriteLock.h \
- zthread/FastMutex.h \
- zthread/FastRecursiveMutex.h \
- zthread/Guard.h \
- zthread/GuardedClass.h \
- zthread/Lockable.h \
- zthread/LockedQueue.h \
- zthread/MonitoredQueue.h \
- zthread/Mutex.h \
- zthread/NonCopyable.h \
- zthread/PoolExecutor.h \
- zthread/Priority.h \
- zthread/PriorityCondition.h \
- zthread/PriorityInheritanceMutex.h \
- zthread/PriorityMutex.h \
- zthread/PrioritySemaphore.h \
- zthread/Queue.h \
- zthread/ReadWriteLock.h \
- zthread/RecursiveMutex.h \
- zthread/Runnable.h \
- zthread/Semaphore.h \
- zthread/Singleton.h \
- zthread/SynchronousExecutor.h \
- zthread/Task.h \
- zthread/Thread.h \
- zthread/ThreadLocal.h \
- zthread/ThreadLocalImpl.h \
- zthread/ThreadedExecutor.h \
- zthread/Time.h \
- zthread/Waitable.h \
- zthread/ZThread.h
-
# Mersenne Twister random number generator header files
EXTRA_DIST += \
mersennetwister/MersenneTwister.h
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 2005, Eric Crahen
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is furnished
- * to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- */
-
-#ifndef __ZTATOMICCOUNT_H__
-#define __ZTATOMICCOUNT_H__
-
-#include <cstdlib>
-
-#include "zthread/Config.h"
-#include "zthread/NonCopyable.h"
-
-namespace ZThread {
-
- /**
- * @class AtomicCount
- * @author Eric Crahen <http://www.code-foo.com>
- * @date <2003-07-16T09:41:55-0400>
- * @version 2.3.0
- *
- * This class provides an interface to a small integer whose value can be
- * incremented or decremented atomically. It's designed to be as simple and
- * lightweight as possible so that it can be used cheaply to create reference
- * counts.
- */
- class ZTHREAD_API AtomicCount : public NonCopyable {
-
- void* _value;
-
- public:
-
- //! Create a new AtomicCount, initialized to a value of 1
- AtomicCount();
-
- //! Destroy a new AtomicCount
- ~AtomicCount();
-
- //! Postfix decrement and return the current value
- size_t operator--(int);
-
- //! Postfix increment and return the current value
- size_t operator++(int);
-
- //! Prefix decrement and return the current value
- size_t operator--();
-
- //! Prefix increment and return the current value
- size_t operator++();
-
-
- }; /* AtomicCount */
-
-
-} // namespace ZThread
-
-#endif // __ZTATOMICCOUNT_H__
Oops, something went wrong.

0 comments on commit 00c7d15

Please sign in to comment.