ChangeLog 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. 2004-05-13 Sebastien Pouliot <[email protected]>
  2. * CompressedStack.cs: Added an internal constructor so a default one
  3. doesn't appear with corcompare.
  4. * Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
  5. corcompare. Both throw a NotImplementedException.
  6. * ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
  7. overloads) to please corcompare. All throw a NotImplementedException.
  8. 2004-05-12 Zoltan Varga <[email protected]>
  9. * CompressedStack.cs: New file.
  10. 2004-04-15 Lluis Sanchez Gual <[email protected]>
  11. * ThreadPool.cs: Added GetMinThreads and SetMinThreads.
  12. * Timer.cs: In Change, return false if the timer has been disposed.
  13. In Dispose, notify the WaitHandle.
  14. 2004-04-11 Lluis Sanchez Gual <[email protected]>
  15. * ReaderWriterLock.cs: More fixes: never wait where acquiring a reader lock
  16. if the thread already has the lock. Added readyWaitingReaders variable to
  17. keep track of threads ready to get the reader lock.
  18. 2004-04-11 Lluis Sanchez Gual <[email protected]>
  19. * LockQueue.cs: Moved lockCount change inside the rwlock lock. Removed
  20. lock(this) when entering the rwlock to avoid a deadlock.
  21. * ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
  22. is not empty (even if state==0).
  23. 2004-04-09 Zoltan Varga <[email protected]>
  24. * Timer.cs: Call the callback immediately if dueTime is 0. Fixes
  25. #56728.
  26. 2004-04-08 Jackson Harper <[email protected]>
  27. * ReaderWriterLock.cs: Fix tyop
  28. 2004-04-08 Lluis Sanchez Gual <[email protected]>
  29. * ReaderWriterLock.cs: Changed some methods to private.
  30. * WaitHandle.cs: In Wait methods, release the synchronization context when
  31. exitContext is true.
  32. 2004-04-08 Gonzalo Paniagua Javier <[email protected]>
  33. * Timer.cs: call Abort on the Runner instance too.
  34. 2004-04-07 Jackson Harper <[email protected]>
  35. * Thread.cs: Use new culture info method for constructing the
  36. current culture.
  37. 2004-04-07 Lluis Sanchez Gual <[email protected]>
  38. * ReaderWriterLock.cs: When a thread holds a writer lock, a call to
  39. AcquireReaderLock works like a call to AcquireWriterLock.
  40. 2004-04-06 Lluis Sanchez Gual <[email protected]>
  41. * Monitor.cs: In Wait(), release the synchronization context when
  42. exitContext is true.
  43. 2004-04-06 Lluis Sanchez Gual <[email protected]>
  44. * LockCookie.cs: Keep in this class the count of reader or writer locks
  45. for a thread, not only whether it has locks or not.
  46. * LockQueue.cs: Added property for checking if a thread is waiting in
  47. the queue. Wait now returns a boolean that set to false on timeout
  48. expiration.
  49. * ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
  50. The main change is that now it keeps a reader lock count for each
  51. thread. This is needed since methods like ReleaseLock or
  52. UpgradeToWriterLock need to return a per-thread status in LockCookie.
  53. Also added support for recursive writer-lock requests.
  54. 2004-03-21 Gonzalo Paniagua Javier <[email protected]>
  55. * ThreadAbortException.cs: use same HResult as MS.
  56. * Timer.cs: abort the running thread when disposing the Timer. This
  57. fixes NullRefs when finishing xsp.
  58. 2004-03-15 Gonzalo Paniagua Javier <[email protected]>
  59. * NativeOverlapped.cs: added 2 new internal fields.
  60. * Overlapped.cs: implemented, but it's not used.
  61. * ThreadPool.cs: implemented BindHandle.
  62. 2004-03-08 Zoltan Varga <[email protected]>
  63. * Timer.cs (Dispose): Applied patch from Jaroslaw Kowalski
  64. ([email protected]). Fix finalization problems during appdomain unload.
  65. 2004-02-23 Jackson Harper <[email protected]>
  66. * LockCookie.cs: Add some fields for restoring locks.
  67. * ReaderWriterLock.cs: Implement
  68. * LockQueue.cs: New File - used for queueing thread locks in
  69. ReaderWriterLock.
  70. 2004-02-19 Jackson Harper <[email protected]>
  71. * Monitor.cs: Fix spelleng.
  72. 2004-02-09 Zoltan Varga <[email protected]>
  73. * Thread.cs: Add fields added to unmanaged MonoThread here as well.
  74. Fixes random errors caused by memory corruption.
  75. 2004-02-06 Zoltan Varga <[email protected]>
  76. * Thread.cs: Store the thread name in unmanaged memory, since the
  77. thread object is shared between appdomains.
  78. 2004-02-05 Sebastien Pouliot <[email protected]>
  79. * Thread.cs: Implemented CurrentPrincipal.
  80. 2004-01-22 Gonzalo Paniagua Javier <[email protected]>
  81. * Thread.cs: delayed thread creation until Start is called. If we
  82. don't do that and Start() is not called, the thread is leaked. First
  83. step towards fixing bug #53078.
  84. 2003-12-02 Dick Porter <[email protected]>
  85. * Thread.cs: Throw InvalidOperationException if Thread.Name is
  86. already set.
  87. 2003-12-01 Dick Porter <[email protected]>
  88. * Thread.cs: Implement CurrentCulture and CurrentUICulture
  89. 2003-11-12 Miguel de Icaza <[email protected]>
  90. * Thread.cs: Add new VolatileRead/VolatileWrite methods from 1.1
  91. 2003-10-23 Lluis Sanchez Gual <[email protected]>
  92. * Thread.cs: Added ResetDataStoreStatus and RestoreDataStoreStatus
  93. methods. They are used in CrossAppDomainChannel to save and restore
  94. thread's local data when switching between domains.
  95. 2003-10-08 Gonzalo Paniagua Javier <[email protected]>
  96. * ManualResetEvent.cs: added check for disposed.
  97. * Thread.cs: no need to init this field.
  98. 2003-10-01 Zoltan Varga <[email protected]>
  99. * Thread.cs: Add locking to AllocateNamedDataSlot and
  100. FreeNamedDataSlot.
  101. Wed Aug 20 12:01:36 CEST 2003 Paolo Molaro <[email protected]>
  102. * Thread.cs: put all the fields at the start and add
  103. more fields needed by the runtime.
  104. 2003-08-14 Lluis Sanchez Gual <[email protected]>
  105. * Thread.cs: SetData() method: use Hashtable.Contains to check
  106. if a dataslot has been allocated (value could be null).
  107. 2003-07-23 Duncan Mak <[email protected]>
  108. * WaitHandle.cs (CheckDisposed): This method is not in the public
  109. API, mark it as 'internal'.
  110. 2003-07-01 Dick Porter <[email protected]>
  111. * Thread.cs: Throw an exception if thread creation failed.
  112. (Better than just blowing up later.)
  113. 2003-06-27 Dietmar Maurer <[email protected]>
  114. * ThreadPool.cs: use async delegate invoke.
  115. 2003-06-25 Dick Porter <[email protected]>
  116. * WaitHandle.cs: Default handle value should be InvalidHandle, not
  117. Zero.
  118. 2003-06-21 Gonzalo Paniagua Javier <[email protected]>
  119. * ThreadPool.cs: correctly create a TimeSpan with provided the number of
  120. milliseconds.
  121. * WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
  122. 2003-06-06 Gonzalo Paniagua Javier <[email protected]>
  123. * WaitHandle.cs: checks and exceptions.
  124. 2003-06-02 Gonzalo Paniagua Javier <[email protected]>
  125. * NativeEventCalls.cs: added CloseEvent_intenal.
  126. * WaitHandle.cs: call CloseEvent_internal when disposing.
  127. 2003-05-31 Gonzalo Paniagua Javier <[email protected]>
  128. * RegisteredWaitHandle.cs: check that the callback is not null before
  129. invoking.
  130. * ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
  131. #43963). Queue the item before setting the handle. If there's a timeout,
  132. avoid trying to Dequeue, getting the exception et al, just continue the
  133. loop.
  134. Mon May 19 09:07:45 CEST 2003 Paolo Molaro <[email protected]>
  135. * Monitor.cs: removed test_owner, the check is already done in the
  136. icall.
  137. Tue May 13 15:34:29 CEST 2003 Paolo Molaro <[email protected]>
  138. * Thread.cs: added missing field used by the runtime and
  139. a new field to support thread-static data.
  140. 2003-04-17 Pedro Mart�ez Juli� <[email protected]>
  141. * Timer.cs: Change the position of two lines because they were
  142. before the "if" that ensures the integrity. After this, the first of
  143. that two lines was producing a NullReferenceException.
  144. 2003-04-09 Dick Porter <[email protected]>
  145. * Thread.cs: Make sure a reference to the ThreadStart delegate is
  146. held. There's no telling how long it will be before
  147. Thread.Start() is called, and GC might destroy the delegate.
  148. Thread() and Start() need to be rewritten so that the runtime
  149. creates the new thread when Start() is called, which will simplify
  150. the code a great deal.
  151. 2003-03-20 Miguel de Icaza <[email protected]>
  152. * Thread.cs (CurrentCuluture): use the invaraint culture instead
  153. of "" for the current_culture setting.
  154. 2003-03-25 Zoltan Varga <[email protected]>
  155. * Thread.cs: Fix visibility of ResetAbort().
  156. 2003-03-18 Dick Porter <[email protected]>
  157. * Thread.cs: Keep the thread state updated in all the places that
  158. require it. (Suspend, Resume and Interrupt not handled yet)
  159. 2003-03-03 Lluis Sanchez Gual <[email protected]>
  160. * Thread.cs: Changed implementation of CurrentContext, adapted to the changes
  161. in the runtime.
  162. 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
  163. * Thread.cs: implemented CurrentContext.
  164. 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
  165. * Thread.cs: made the thread_id for the current thread accesible through
  166. an internal property.
  167. 2003-02-17 Dick Porter <[email protected]>
  168. * Thread.cs: Added the Start semaphore field to the class. Update
  169. the thread state after Start() has returned, not before.
  170. 2003-02-13 Zoltan Varga <[email protected]>
  171. * Thread.cs (Sleep): Timeout.Infinite is a value argument.
  172. 2003-02-11 Dick Porter <[email protected]>
  173. * Monitor.cs: Infinite wait is Infinite, not 0 ms
  174. 2003-02-10 Gonzalo Paniagua Javier <[email protected]>
  175. * Thread.cs: fixed bug #37759.
  176. 2003-02-07 Patrik Torstensson
  177. * Timer.cs: Set the Background thread flag for the timer thread
  178. 2003-02-05 Patrik Torstensson
  179. * ThreadPool.cs: Reformated and fixed issue that made all thread exit the pool.
  180. 2003-02-04 Lluis Sanchez Gual <[email protected]>
  181. * ThreadPool.cs: Implemented RegisterWaitForSingleObject methods.
  182. Tue Jan 28 17:55:59 CET 2003 Paolo Molaro <[email protected]>
  183. * Thread.cs: delay-init datastorehash.
  184. 2003-01-10 Patrik Torstensson <[email protected]>
  185. * ThreadPool.cs: Temporary removed the usage of monitor thread, implemented a
  186. model more equal to the MS one.
  187. 2002-12-10 Dick Porter <[email protected]>
  188. * Monitor.cs:
  189. * Thread.cs:
  190. * ThreadPool.cs:
  191. * Timer.cs:
  192. * WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
  193. ms, not Milliseconds.
  194. 2002-12-07 Martin Baulig <[email protected]>
  195. * Timer.cs: Make it actually work; now it no longer sets your
  196. application on fire if you use a zero periode and Timer.Change()
  197. actually works.
  198. 2002-11-11 Gonzalo Paniagua Javier <[email protected]>
  199. * Timer.cs: implemented more stuff. It works now.
  200. 2002-10-25 Zoltan Varga <[email protected]>
  201. * Thread.cs: Implement GetDomain() and GetDomainID().
  202. 2002-10-24 Gonzalo Paniagua Javier <[email protected]>
  203. * ThreadPool.cs: now the monitor thread is not sleeping and checking if
  204. more worker threads needed. It waits on _DataInQueue. If (and only if)
  205. there's data in the queue it checks if more worker threads needed and
  206. then sleeps 0.5s before waiting for queued data again.
  207. 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
  208. * ThreadPool.cs: set IsThreadPoolThread before starting the worker.
  209. 2002-09-11 Dick Porter <[email protected]>
  210. * Mutex.cs:
  211. * ManualResetEvent.cs:
  212. * AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
  213. the private field
  214. * WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
  215. method
  216. 2002-09-03 Dick Porter <[email protected]>
  217. * Thread.cs: Added thread ID field
  218. 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
  219. * WaitHandle.cs: IDisposable fixes.
  220. 2002-08-14 Dick Porter <[email protected]>
  221. * Thread.cs: Make CurrentUICulture act the same as CurrentCulture
  222. for now.
  223. 2002-08-12 Dietmar Maurer <[email protected]>
  224. * ThreadAbortException.cs: impl. ExceptionState property.
  225. * Thread.cs: moved all instance variables to the start of the
  226. class. added support for Thread::Abort()
  227. 2002-04-30 Dick Porter <[email protected]>
  228. * Thread.cs: If LocalDataStoreSlot already has data set, remove it
  229. before adding a new one.
  230. Use the Thread object destructor to tell the runtime to close the
  231. thread handle.
  232. 2002-04-14 Patrik Torstensson <[email protected]>
  233. * Interlocked.cs: made all methods icalls.
  234. 2002-04-14 Gonzalo Paniagua Javier <[email protected]>
  235. * IOCompletionCallback.cs: added attributes to the delegate
  236. (CLSCompliant(false) and Serializable).
  237. 2002-04-14 Patrik Torstensson <[email protected]>
  238. * Thread.cs: Fixed IsThreadPoolThread to use a internal property instead of extending
  239. the threadstate enum.
  240. * ThreadPool.cs: Now using the internal Isthreadpoolthread property
  241. * ThreadState.cs: removed non-standard enum (ThreadPoolThread)
  242. 2002-04-14 Patrik Torstensson <[email protected]>
  243. * ThreadState.cs: Added enum for threadpool thread
  244. * Thread.cs: changed the set/clr_state to be internal (used from threadpool)
  245. * Thread.cs: Added IsThreadPoolThread
  246. * ThreadPool.cs: Implementation of QueueUserWorkItem
  247. Wed Feb 13 21:51:30 CET 2002 Paolo Molaro <[email protected]>
  248. * Thread.cs: implement CurrentCulture property needed by
  249. Convert.ChangeType() (used when compiling enums).
  250. 2002-01-23 Dick Porter <[email protected]>
  251. * ManualResetEvent.cs:
  252. * AutoResetEvent.cs: Fixed DOS line endings
  253. 2002-01-22 Veronica De Santis <[email protected]>
  254. * NativeEventCalls : Class that contains internal calls shared by Auto
  255. and Manual Reset Events
  256. * AutoResetEvents.cs : Added class AutoResetEvents and its implementation
  257. * ManualResetEvents.cs : Added class ManualResetEvents and its implementation
  258. 2002-01-16 Veronica De Santis <[email protected]>
  259. * WaitHandle.cs : Renamed handle to os_handle and make it protected
  260. instead of private.
  261. * Mutex.cs : Write the System.Threading.Mutex methods ( constructors
  262. and the ReleaseMutex)
  263. 2002-01-15 Dick Porter <[email protected]>
  264. * WaitHandle.cs:
  265. * Thread.cs: Make the runtime's idea of infinite timeouts coincide
  266. with the class library's
  267. 2002-01-10 Dick Porter <[email protected]>
  268. * WaitHandle.cs: Added checks for too many handles and null
  269. handles in WaitAll() and WaitAny
  270. 2002-01-05 Ravi Pratap <[email protected]>
  271. * AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
  272. decoration.
  273. * Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
  274. Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.
  275. 2001-12-11 Dick Porter <[email protected]>
  276. * WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
  277. internal calls.
  278. 2001-11-26 Dick Porter <[email protected]>
  279. * Thread.cs: DataSlot uses a single system TLS slot, and a
  280. hashtable per thread. Some minor changes to reflect the new
  281. internal calls using the new IO library, and the newly-supported
  282. bool returns from internal calls.
  283. * Monitor.cs: Use bool returns from internal calls now they are
  284. supported by the runtime. Coalesce enter with the try_enter
  285. internal call.
  286. Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <[email protected]>
  287. * Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.
  288. 2001-10-03 Dick Porter <[email protected]>
  289. * Monitor.cs: Implemented all methods except the two Wait()
  290. methods that take boolean parameters
  291. 2001-09-28 Dick Porter <[email protected]>
  292. * Thread.cs: Implemented AllocateDataSlot(),
  293. AllocateNamedDataSlot(), FreeNamedDataSlot(), GetData(),
  294. GetNamedDataSlot(), SetData(), IsBackground. Reworked Thread()
  295. and Start() to avoid a race condition. Added thread-safe state
  296. changing private operations.
  297. * Monitor.cs: Comment out the GetType() calls because it isn't implemented yet
  298. 2001-09-25 Dick Porter <[email protected]>
  299. * Thread.cs: Implement Join and timed Join, set correct state
  300. around Start, Join and Sleep calls, implement IsAlive and
  301. ThreadState properties.
  302. * ThreadState.cs (Threading): Added StopRequested,
  303. SuspendRequested, Suspended values
  304. 2001-09-23 Dick Porter <[email protected]>
  305. * Thread.cs: Implemented CurrentThread and Sleep (both versions)
  306. with internal calls, and Name.
  307. 2001-09-21 Dick Porter <[email protected]>
  308. * Thread.cs: Implement Thread(ThreadStart) constructor and Start()
  309. with an internal call
  310. * WaitHandle.cs: Close calls Dispose(false)
  311. 2001-09-13 Dick Porter <[email protected]>
  312. * ApartmentState.cs (Threading): Set the correct enum values
  313. 2001-09-13 Dick Porter <[email protected]>
  314. * ApartmentState.cs, AutoResetEvent.cs, IOCompletionCallback.cs,
  315. Interlocked.cs, LockCookie.cs, ManualResetEvent.cs, Monitor.cs,
  316. Mutex.cs, NativeOverlapped.cs, Overlapped.cs, ReaderWriterLock.cs,
  317. RegisteredWaitHandle.cs, SynchronizationLockException.cs,
  318. Thread.cs, ThreadAbortException.cs, ThreadInterruptedException.cs,
  319. ThreadPool.cs, ThreadStart.cs, ThreadStateException.cs,
  320. Timeout.cs, Timer.cs, TimerCallback.cs, WaitCallback.cs,
  321. WaitHandle.cs, WaitOrTimerCallback.cs: System.Threading class
  322. stubs.
  323. 2001-07-18 Michael Lambert <[email protected]>
  324. * ThreadPriority.cs, ThreadState.cs: Add.