ChangeLog 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  1. 2005-10-06 Sebastien Pouliot <[email protected]>
  2. * Thread.cs: Added new attributes, [ReliabilityContract] for
  3. destructor and [Obsolete] for [Get|Set]CompressedStack, that were
  4. added in 2.0 RC.
  5. 2005-09-11 Zoltan Varga <[email protected]>
  6. * Thread.cs (MemoryBarrier): Make this an icall.
  7. 2005-09-10 Zoltan Varga <[email protected]>
  8. * Thread.cs (Interrupt): Make this throw a NotImplementedException.
  9. 2005-09-09 Martin Baulig <[email protected]>
  10. * Timer.cs (Timer.Runner.Start): Silently catch
  11. ObjectDisposedException and return; works around some race
  12. condition on thread abort.
  13. 2005-08-19 Dick Porter <[email protected]>
  14. * Thread.cs: Reserve 64 bits for the thread ID.
  15. 2005-07-19 Martin Baulig <[email protected]>
  16. * Timer.cs (Timer.Runner.Start): Fix a race condition which was
  17. causing a hang on exit int he debugger: check `!disposed' before
  18. `start_event.WaitOne ()' and again after it.
  19. 2005-06-07 Gonzalo Paniagua Javier <[email protected]>
  20. * Thread.cs: check that the culture is valid for formatting
  21. (ie, (!neutral || invariant)).
  22. 2005-06-07 Sebastien Pouliot <[email protected]>
  23. * Thread.cs: Added _Thread interface (and members) and a few missing
  24. attributes (for both 1.1 and 2.0).
  25. 2005-06-06 Zoltan Varga <[email protected]>
  26. * Thread.cs Mutex.cs Monitor.cs: Add some missing 2.0 attributes.
  27. 2005-05-29 Sebastien Pouliot <[email protected]>
  28. * Timer.cs: Added new constructor for 2.0 and ComVisible attribute.
  29. * Timeout.cs: This is a static class in 2.0 and ComVisible attribute.
  30. 2005-05-26 Ben Maurer <[email protected]>
  31. * Thread.cs: Use a static object for a lock rather than
  32. typeof(Thread).
  33. 2005-05-26 Sebastien Pouliot <[email protected]>
  34. * SynchronizationContext.cs: Re-introduced SendOrPost method as it's
  35. being used in System.Web.Services.
  36. 2005-05-26 Sebastien Pouliot <[email protected]>
  37. * SynchronizationContext.cs: Updated to beta2 API so it doesn't depend
  38. on the switcher structure anymore (which will be removed from the
  39. build).
  40. 2005-05-24 Sebastien Pouliot <[email protected]>
  41. * Thread.cs: Removed #pragma which aren't supported by CSC 7.x.
  42. 2005-05-20 Sebastien Pouliot <[email protected]>
  43. * AsyncFlowControl.cs: Now available, as internal, in NET_1_1. This is
  44. required to get some methods from SecurityContext and ExecutionContext
  45. working.
  46. * CompressedStack.cs: Now includes the current CompressedStack in a new
  47. Capture.
  48. * ExecutionContext.cs: Includes more methods in NET_1_1 to enable
  49. ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
  50. stack propagation).
  51. * Thread.cs: Made ExecutionContext field accessible from the runtime.
  52. Added stack propagation when Thread.Start is called.
  53. * ThreadPool.cs: QueueUserWorkItem now does stack propagation (done in
  54. the runtime), so I "fixed" UnsafeQueueUserWorkItem not to do so.
  55. 2005-05-19 Miguel de Icaza <[email protected]>
  56. * Thread.cs: REmove warnings.
  57. 2005-05-16 Gonzalo Paniagua Javier <[email protected]>
  58. * Thread.cs: first check for null, then set in_currentculture.
  59. 2005-05-12 Lluis Sanchez Gual <[email protected]>
  60. * Thread.cs: Moved all checks done inside sync_lock to unmanaged code.
  61. Merged Thread_internal and Start_internal into a single icall, which
  62. does all work.
  63. 2005-05-11 Sebastien Pouliot <[email protected]>
  64. * CompressedStack.cs: Allow merging of an existing CompressedStack
  65. with the actual stack of the current Thread.
  66. * Thread.cs: GetCompressedStack and SetCompressedStack are public
  67. before 2.0 but couldn't be seen with mono-api-info because of it's
  68. LinkDemand for the ECMA public key. Removed unused CompressedStack
  69. private field (now part of the ExecutionContext).
  70. 2005-05-09 Sebastien Pouliot <[email protected]>
  71. * CompressedStack.cs: GetCompressedStack is public before 2.0 but
  72. couldn't be seen with mono-api-info because of it's LinkDemand for
  73. the ECMA public key. Stack capture occurs here if none exists on the
  74. current thread.
  75. 2005-04-28 Gonzalo Paniagua Javier <[email protected]>
  76. * ReaderWriterLock.cs: fix random ApplicationException errors. Tested
  77. with the System.Web.Cache stress program. Patch by Eyal Alayuf
  78. (Mainsoft). Fixes 74598.
  79. 2005-04-28 Sebastien Pouliot <[email protected]>
  80. * Thread.cs: Added property to get the ExecutionContext in 2.0. Fixed
  81. GetCompressedStack and made SetCompressedStack available (as internal)
  82. before NET_2_0.
  83. 2005-04-28 Sebastien Pouliot <[email protected]>
  84. * AsyncFlowControl.cs: Updated wrt beta2.
  85. * ExecutionContext.cs: Updated wrt beta2. Class is now internal in
  86. NET_1_1 to allow the compressed stack propagation to other threads.
  87. * CompressedStack.cs: Updated wrt beta2. Class is internal in NET_1_1
  88. to allow the compressed stack propagation to other threads.
  89. * ContextCallback.cs: Updated wrt beta2.
  90. * HostExecutionContext.cs: Updated wrt beta2.
  91. * HostExecutionContextManager.cs: Updated wrt beta2.
  92. * Thread.cs: Added internal property to get the ExecutionContext.
  93. 2005-04-19 Zoltan Varga <[email protected]>
  94. * Thread.cs: Add some unused fields.
  95. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  96. * ThreadPool.cs: BindHandle does nothing now.
  97. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  98. * Thread.cs: clear the Unstarted bit before calling Start_internal.
  99. Fixes bug #72738.
  100. 2005-04-04 Ben Maurer <[email protected]>
  101. * Thread.cs: Do argument checking for Current[UI]Culture to make
  102. the exception more clear for a null value being set.
  103. 2005-03-24 Sebastien Pouliot <[email protected]>
  104. * CompressedStack.cs: Added LinkDemand for UnmanagedCode and ECMA
  105. public key on GetCompressedStack method.
  106. * Mutex: Added LinkDemand for UnmanagedCode to create named (system
  107. wide) mutexes.
  108. * Thread.cs: Added LinkDemand for ECMA public key on [Get|Set]
  109. CompressedStack methods.
  110. * WaitHandle.cs: Added LinkDemand and InheritanceDemand for
  111. UnmanagedCode on set Handle property.
  112. 2005-03-10 Zoltan Varga <[email protected]>
  113. * Thread.cs: Make slothash a ThreadStatic field. Fixes #65414.
  114. 2005-02-21 Zoltan Varga <[email protected]>
  115. * Monitor.cs Interlocked.cs: Add net 2.0 ReliabilityContractAttributes.
  116. 2005-02-20 Zoltan Varga <[email protected]>
  117. * Interlocked.cs: Applied patch from Luca Barbieri ([email protected]). Add NET 2.0 methods.
  118. Tue Feb 15 18:19:11 CET 2005 Paolo Molaro <[email protected]>
  119. * Thread.cs: make the slothash a field in MonoThread.
  120. 2005-01-27 Sebastien Pouliot <[email protected]>
  121. * Overlapped.cs: Added check for ControlPolicy and ControlEvidence for
  122. Unsafe pack. Added MonoTODO for missing security stack propagation.
  123. * Thread.cs: Add security checks for ControlThread.
  124. * ThreadPool.cs: Added declarative security checks.
  125. Thu Jan 13 18:15:32 CET 2005 Paolo Molaro <[email protected]>
  126. * Thread.cs: implement stacksize and parameterized
  127. start functionality (requires matching runtime).
  128. 2005-01-12 Gonzalo Paniagua Javier <[email protected]>
  129. * ThreadAbortException.cs: added private serialization .ctor.
  130. 2004-12-20 Sebastien Pouliot <[email protected]>
  131. * CompressedStack.cs: Implemented most todo so it's usable for CAS.
  132. * CompressedStackSwitcher.cs: Implemented most todo.
  133. * Thread.cs: Implement support for getting/setting CompressedStack.
  134. 2004-12-15 Zoltan Varga <[email protected]>
  135. * Thread.cs: Change type of culture_info and ui_culture_info to
  136. IntPtr. Implement correct culture handling for the UI culture as
  137. well.
  138. 2004-12-14 Zoltan Varga <[email protected]>
  139. * Thread.cs: Optimize CurrentCulture to avoid initializing the
  140. serialization infrastructure in the common case when the culture is
  141. not set explicitly.
  142. 2004-12-06 Zoltan Varga <[email protected]>
  143. * Thread.cs: Add new fields 'serialized_culture_info{_len}'.
  144. * Thread.cs (CurrentCulture): Fix leaking of culture info objects
  145. across appdomains. Partially fixes #50049.
  146. 2004-12-05 Miguel de Icaza <[email protected]>
  147. * AutoResetEvent.cs (Set, Reset): If we are disposed, throw a
  148. ObjectDisposedEvent, helped track the WebConnection destructor
  149. issue.
  150. 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
  151. * Timer.cs: don't invoke the callback twice when the timer changes.
  152. Fixes bug #66116.
  153. 2004-09-08 Marek Safar <[email protected]>
  154. * Interlocked.cs: Class is static in NET_2_0.
  155. 2004-09-04 Sebastien Pouliot <[email protected]>
  156. * Thread.cs: Changed an imperative security demand to declarative
  157. (unsupported) so it doesn't (for now) call the security runtime.
  158. 2004-08-20 Sebastien Pouliot <[email protected]>
  159. * Thread.cs: Added Fx 2.0 properties/methods/attributes.
  160. 2004-08-12 Sebastien Pouliot <[email protected]>
  161. * CompressedStackSwitcher.cs: Added missing [ComVisible] and
  162. [ReliabilityContract] attributes.
  163. * ExecutionContext.cs: Added missing [ComVisible] and
  164. [Serializable] attributes.
  165. * HostExecutionContext.cs: Added missing [ComVisible] attribute.
  166. * HostExecutionContextManager.cs: Added missing [ComVisible] and
  167. [ReliabilityContract] attributes.
  168. * HostExecutionContextSwitcher.cs: Added missing Equals and
  169. GetHashCode methods and [ComVisible] and [ReliabilityContract] attrs.
  170. * ParameterizedThreadStart.cs: New delegate in NET_2_0.
  171. * SendOrPostCallback.cs: Added missing [ComVisible] attribute.
  172. * SynchronizationContext.cs: Added new (2.0 beta1) methods Copy and
  173. WaitHelper. Added missing [ComVisible] and [ReliabilityContract] attrs.
  174. * SynchronizationContextSwitcher.cs: Added missing [ComVisible] and
  175. [ReliabilityContract] attributes.
  176. 2004-08-08 Sebastien Pouliot <[email protected]>
  177. * HostExecutionContext.cs: Fx 2.0 stub required for AppDomain.
  178. * HostExecutionContextManager.cs: Fx 2.0 stub required for AppDomain.
  179. * HostExecutionContextSwitcher.cs: Fx 2.0 stub required for AppDomain.
  180. 2004-08-04 Gonzalo Paniagua Javier <[email protected]>
  181. * Timer.cs: don't invoke the callback if the period changes before the
  182. due time. Fixes bug #62421.
  183. 2004-07-27 Lluis Sanchez Gual <[email protected]>
  184. * ExecutionContext.cs, ExecutionContextSwitcher.cs,
  185. SynchronizationContext.cs, SynchronizationContextSwitcher.cs: Added
  186. 2.0 stubs.
  187. 2004-07-15 Dick Porter <[email protected]>
  188. * Thread.cs: Hold a lock in GetNamedDataSlot. Fixes bug 61582,
  189. based on patch by Sbastien Robitaille
  190. ([email protected]). Also fix instances of
  191. lock(typeof(Thread)) to lock a private object instead.
  192. 2004-07-14 Sebastien Pouliot <[email protected]>
  193. * AsyncFlowControl.cs: New structure in Fx 2.0 required in
  194. System.Security namespace.
  195. * CompressedStackSwitcher.cs: New structure in Fx 2.0 required in
  196. System.Security namespace.
  197. * ContextCallback.cs: New delegate in Fx 2.0 required in
  198. System.Security namespace.
  199. * CompressedStack.cs: Updated API for NET_2_0 profile.
  200. 2004-07-10 Lluis Sanchez Gual <[email protected]>
  201. * SendOrPostCallback.cs: New delegate.
  202. 2004-06-24 Dick Porter <[email protected]>
  203. * Mutex.cs: Implement the createdNew parameter
  204. 2004-06-15 Gert Driesen <[email protected]>
  205. * Thread.cs: changed return type of VolatileRead to UIntPtr
  206. * ThreadPool.cs: set return type of SetMinThreads to bool
  207. 2004-06-15 Lluis Sanchez Gual <[email protected]>
  208. * Thread.cs: Added new fields to keep sync with MonoThread.
  209. Removed state changes in Sleep and Join. The state change is now done
  210. in the icall. For accessing to internal fields lock with synch_lock
  211. instead of this, which can be a source of deadlocks.
  212. 2004-06-15 Lluis Sanchez Gual <[email protected]>
  213. * Timer.cs: Don't abort the thread if Dispose() is called from the runner
  214. thread.
  215. 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
  216. * Thread.cs:
  217. (CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
  218. the thread IPrincipal if we get it from the AppDomain.
  219. 2004-06-09 Gert Driesen <[email protected]>
  220. * CompressedStack.cs: Added finalizer to match public API of
  221. MS.NET
  222. 2004-05-19 Lluis Sanchez Gual <[email protected]>
  223. * Thread.cs: Some fixes in Abort. Implemented Suspend and Resume.
  224. Added internal interruption_requested field.
  225. 2004-05-13 Sebastien Pouliot <[email protected]>
  226. * CompressedStack.cs: Added an internal constructor so a default one
  227. doesn't appear with corcompare.
  228. * Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
  229. corcompare. Both throw a NotImplementedException.
  230. * ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
  231. overloads) to please corcompare. All throw a NotImplementedException.
  232. 2004-05-12 Zoltan Varga <[email protected]>
  233. * CompressedStack.cs: New file.
  234. 2004-04-15 Lluis Sanchez Gual <[email protected]>
  235. * ThreadPool.cs: Added GetMinThreads and SetMinThreads.
  236. * Timer.cs: In Change, return false if the timer has been disposed.
  237. In Dispose, notify the WaitHandle.
  238. 2004-04-11 Lluis Sanchez Gual <[email protected]>
  239. * ReaderWriterLock.cs: More fixes: never wait where acquiring a reader lock
  240. if the thread already has the lock. Added readyWaitingReaders variable to
  241. keep track of threads ready to get the reader lock.
  242. 2004-04-11 Lluis Sanchez Gual <[email protected]>
  243. * LockQueue.cs: Moved lockCount change inside the rwlock lock. Removed
  244. lock(this) when entering the rwlock to avoid a deadlock.
  245. * ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
  246. is not empty (even if state==0).
  247. 2004-04-09 Zoltan Varga <[email protected]>
  248. * Timer.cs: Call the callback immediately if dueTime is 0. Fixes
  249. #56728.
  250. 2004-04-08 Jackson Harper <[email protected]>
  251. * ReaderWriterLock.cs: Fix tyop
  252. 2004-04-08 Lluis Sanchez Gual <[email protected]>
  253. * ReaderWriterLock.cs: Changed some methods to private.
  254. * WaitHandle.cs: In Wait methods, release the synchronization context when
  255. exitContext is true.
  256. 2004-04-08 Gonzalo Paniagua Javier <[email protected]>
  257. * Timer.cs: call Abort on the Runner instance too.
  258. 2004-04-07 Jackson Harper <[email protected]>
  259. * Thread.cs: Use new culture info method for constructing the
  260. current culture.
  261. 2004-04-07 Lluis Sanchez Gual <[email protected]>
  262. * ReaderWriterLock.cs: When a thread holds a writer lock, a call to
  263. AcquireReaderLock works like a call to AcquireWriterLock.
  264. 2004-04-06 Lluis Sanchez Gual <[email protected]>
  265. * Monitor.cs: In Wait(), release the synchronization context when
  266. exitContext is true.
  267. 2004-04-06 Lluis Sanchez Gual <[email protected]>
  268. * LockCookie.cs: Keep in this class the count of reader or writer locks
  269. for a thread, not only whether it has locks or not.
  270. * LockQueue.cs: Added property for checking if a thread is waiting in
  271. the queue. Wait now returns a boolean that set to false on timeout
  272. expiration.
  273. * ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
  274. The main change is that now it keeps a reader lock count for each
  275. thread. This is needed since methods like ReleaseLock or
  276. UpgradeToWriterLock need to return a per-thread status in LockCookie.
  277. Also added support for recursive writer-lock requests.
  278. 2004-03-21 Gonzalo Paniagua Javier <[email protected]>
  279. * ThreadAbortException.cs: use same HResult as MS.
  280. * Timer.cs: abort the running thread when disposing the Timer. This
  281. fixes NullRefs when finishing xsp.
  282. 2004-03-15 Gonzalo Paniagua Javier <[email protected]>
  283. * NativeOverlapped.cs: added 2 new internal fields.
  284. * Overlapped.cs: implemented, but it's not used.
  285. * ThreadPool.cs: implemented BindHandle.
  286. 2004-03-08 Zoltan Varga <[email protected]>
  287. * Timer.cs (Dispose): Applied patch from Jaroslaw Kowalski
  288. ([email protected]). Fix finalization problems during appdomain unload.
  289. 2004-02-23 Jackson Harper <[email protected]>
  290. * LockCookie.cs: Add some fields for restoring locks.
  291. * ReaderWriterLock.cs: Implement
  292. * LockQueue.cs: New File - used for queueing thread locks in
  293. ReaderWriterLock.
  294. 2004-02-19 Jackson Harper <[email protected]>
  295. * Monitor.cs: Fix spelleng.
  296. 2004-02-09 Zoltan Varga <[email protected]>
  297. * Thread.cs: Add fields added to unmanaged MonoThread here as well.
  298. Fixes random errors caused by memory corruption.
  299. 2004-02-06 Zoltan Varga <[email protected]>
  300. * Thread.cs: Store the thread name in unmanaged memory, since the
  301. thread object is shared between appdomains.
  302. 2004-02-05 Sebastien Pouliot <[email protected]>
  303. * Thread.cs: Implemented CurrentPrincipal.
  304. 2004-01-22 Gonzalo Paniagua Javier <[email protected]>
  305. * Thread.cs: delayed thread creation until Start is called. If we
  306. don't do that and Start() is not called, the thread is leaked. First
  307. step towards fixing bug #53078.
  308. 2003-12-02 Dick Porter <[email protected]>
  309. * Thread.cs: Throw InvalidOperationException if Thread.Name is
  310. already set.
  311. 2003-12-01 Dick Porter <[email protected]>
  312. * Thread.cs: Implement CurrentCulture and CurrentUICulture
  313. 2003-11-12 Miguel de Icaza <[email protected]>
  314. * Thread.cs: Add new VolatileRead/VolatileWrite methods from 1.1
  315. 2003-10-23 Lluis Sanchez Gual <[email protected]>
  316. * Thread.cs: Added ResetDataStoreStatus and RestoreDataStoreStatus
  317. methods. They are used in CrossAppDomainChannel to save and restore
  318. thread's local data when switching between domains.
  319. 2003-10-08 Gonzalo Paniagua Javier <[email protected]>
  320. * ManualResetEvent.cs: added check for disposed.
  321. * Thread.cs: no need to init this field.
  322. 2003-10-01 Zoltan Varga <[email protected]>
  323. * Thread.cs: Add locking to AllocateNamedDataSlot and
  324. FreeNamedDataSlot.
  325. Wed Aug 20 12:01:36 CEST 2003 Paolo Molaro <[email protected]>
  326. * Thread.cs: put all the fields at the start and add
  327. more fields needed by the runtime.
  328. 2003-08-14 Lluis Sanchez Gual <[email protected]>
  329. * Thread.cs: SetData() method: use Hashtable.Contains to check
  330. if a dataslot has been allocated (value could be null).
  331. 2003-07-23 Duncan Mak <[email protected]>
  332. * WaitHandle.cs (CheckDisposed): This method is not in the public
  333. API, mark it as 'internal'.
  334. 2003-07-01 Dick Porter <[email protected]>
  335. * Thread.cs: Throw an exception if thread creation failed.
  336. (Better than just blowing up later.)
  337. 2003-06-27 Dietmar Maurer <[email protected]>
  338. * ThreadPool.cs: use async delegate invoke.
  339. 2003-06-25 Dick Porter <[email protected]>
  340. * WaitHandle.cs: Default handle value should be InvalidHandle, not
  341. Zero.
  342. 2003-06-21 Gonzalo Paniagua Javier <[email protected]>
  343. * ThreadPool.cs: correctly create a TimeSpan with provided the number of
  344. milliseconds.
  345. * WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
  346. 2003-06-06 Gonzalo Paniagua Javier <[email protected]>
  347. * WaitHandle.cs: checks and exceptions.
  348. 2003-06-02 Gonzalo Paniagua Javier <[email protected]>
  349. * NativeEventCalls.cs: added CloseEvent_intenal.
  350. * WaitHandle.cs: call CloseEvent_internal when disposing.
  351. 2003-05-31 Gonzalo Paniagua Javier <[email protected]>
  352. * RegisteredWaitHandle.cs: check that the callback is not null before
  353. invoking.
  354. * ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
  355. #43963). Queue the item before setting the handle. If there's a timeout,
  356. avoid trying to Dequeue, getting the exception et al, just continue the
  357. loop.
  358. Mon May 19 09:07:45 CEST 2003 Paolo Molaro <[email protected]>
  359. * Monitor.cs: removed test_owner, the check is already done in the
  360. icall.
  361. Tue May 13 15:34:29 CEST 2003 Paolo Molaro <[email protected]>
  362. * Thread.cs: added missing field used by the runtime and
  363. a new field to support thread-static data.
  364. 2003-04-17 Pedro Mart�ez Juli� <[email protected]>
  365. * Timer.cs: Change the position of two lines because they were
  366. before the "if" that ensures the integrity. After this, the first of
  367. that two lines was producing a NullReferenceException.
  368. 2003-04-09 Dick Porter <[email protected]>
  369. * Thread.cs: Make sure a reference to the ThreadStart delegate is
  370. held. There's no telling how long it will be before
  371. Thread.Start() is called, and GC might destroy the delegate.
  372. Thread() and Start() need to be rewritten so that the runtime
  373. creates the new thread when Start() is called, which will simplify
  374. the code a great deal.
  375. 2003-03-20 Miguel de Icaza <[email protected]>
  376. * Thread.cs (CurrentCuluture): use the invaraint culture instead
  377. of "" for the current_culture setting.
  378. 2003-03-25 Zoltan Varga <[email protected]>
  379. * Thread.cs: Fix visibility of ResetAbort().
  380. 2003-03-18 Dick Porter <[email protected]>
  381. * Thread.cs: Keep the thread state updated in all the places that
  382. require it. (Suspend, Resume and Interrupt not handled yet)
  383. 2003-03-03 Lluis Sanchez Gual <[email protected]>
  384. * Thread.cs: Changed implementation of CurrentContext, adapted to the changes
  385. in the runtime.
  386. 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
  387. * Thread.cs: implemented CurrentContext.
  388. 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
  389. * Thread.cs: made the thread_id for the current thread accesible through
  390. an internal property.
  391. 2003-02-17 Dick Porter <[email protected]>
  392. * Thread.cs: Added the Start semaphore field to the class. Update
  393. the thread state after Start() has returned, not before.
  394. 2003-02-13 Zoltan Varga <[email protected]>
  395. * Thread.cs (Sleep): Timeout.Infinite is a value argument.
  396. 2003-02-11 Dick Porter <[email protected]>
  397. * Monitor.cs: Infinite wait is Infinite, not 0 ms
  398. 2003-02-10 Gonzalo Paniagua Javier <[email protected]>
  399. * Thread.cs: fixed bug #37759.
  400. 2003-02-07 Patrik Torstensson
  401. * Timer.cs: Set the Background thread flag for the timer thread
  402. 2003-02-05 Patrik Torstensson
  403. * ThreadPool.cs: Reformated and fixed issue that made all thread exit the pool.
  404. 2003-02-04 Lluis Sanchez Gual <[email protected]>
  405. * ThreadPool.cs: Implemented RegisterWaitForSingleObject methods.
  406. Tue Jan 28 17:55:59 CET 2003 Paolo Molaro <[email protected]>
  407. * Thread.cs: delay-init datastorehash.
  408. 2003-01-10 Patrik Torstensson <[email protected]>
  409. * ThreadPool.cs: Temporary removed the usage of monitor thread, implemented a
  410. model more equal to the MS one.
  411. 2002-12-10 Dick Porter <[email protected]>
  412. * Monitor.cs:
  413. * Thread.cs:
  414. * ThreadPool.cs:
  415. * Timer.cs:
  416. * WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
  417. ms, not Milliseconds.
  418. 2002-12-07 Martin Baulig <[email protected]>
  419. * Timer.cs: Make it actually work; now it no longer sets your
  420. application on fire if you use a zero periode and Timer.Change()
  421. actually works.
  422. 2002-11-11 Gonzalo Paniagua Javier <[email protected]>
  423. * Timer.cs: implemented more stuff. It works now.
  424. 2002-10-25 Zoltan Varga <[email protected]>
  425. * Thread.cs: Implement GetDomain() and GetDomainID().
  426. 2002-10-24 Gonzalo Paniagua Javier <[email protected]>
  427. * ThreadPool.cs: now the monitor thread is not sleeping and checking if
  428. more worker threads needed. It waits on _DataInQueue. If (and only if)
  429. there's data in the queue it checks if more worker threads needed and
  430. then sleeps 0.5s before waiting for queued data again.
  431. 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
  432. * ThreadPool.cs: set IsThreadPoolThread before starting the worker.
  433. 2002-09-11 Dick Porter <[email protected]>
  434. * Mutex.cs:
  435. * ManualResetEvent.cs:
  436. * AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
  437. the private field
  438. * WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
  439. method
  440. 2002-09-03 Dick Porter <[email protected]>
  441. * Thread.cs: Added thread ID field
  442. 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
  443. * WaitHandle.cs: IDisposable fixes.
  444. 2002-08-14 Dick Porter <[email protected]>
  445. * Thread.cs: Make CurrentUICulture act the same as CurrentCulture
  446. for now.
  447. 2002-08-12 Dietmar Maurer <[email protected]>
  448. * ThreadAbortException.cs: impl. ExceptionState property.
  449. * Thread.cs: moved all instance variables to the start of the
  450. class. added support for Thread::Abort()
  451. 2002-04-30 Dick Porter <[email protected]>
  452. * Thread.cs: If LocalDataStoreSlot already has data set, remove it
  453. before adding a new one.
  454. Use the Thread object destructor to tell the runtime to close the
  455. thread handle.
  456. 2002-04-14 Patrik Torstensson <[email protected]>
  457. * Interlocked.cs: made all methods icalls.
  458. 2002-04-14 Gonzalo Paniagua Javier <[email protected]>
  459. * IOCompletionCallback.cs: added attributes to the delegate
  460. (CLSCompliant(false) and Serializable).
  461. 2002-04-14 Patrik Torstensson <[email protected]>
  462. * Thread.cs: Fixed IsThreadPoolThread to use a internal property instead of extending
  463. the threadstate enum.
  464. * ThreadPool.cs: Now using the internal Isthreadpoolthread property
  465. * ThreadState.cs: removed non-standard enum (ThreadPoolThread)
  466. 2002-04-14 Patrik Torstensson <[email protected]>
  467. * ThreadState.cs: Added enum for threadpool thread
  468. * Thread.cs: changed the set/clr_state to be internal (used from threadpool)
  469. * Thread.cs: Added IsThreadPoolThread
  470. * ThreadPool.cs: Implementation of QueueUserWorkItem
  471. Wed Feb 13 21:51:30 CET 2002 Paolo Molaro <[email protected]>
  472. * Thread.cs: implement CurrentCulture property needed by
  473. Convert.ChangeType() (used when compiling enums).
  474. 2002-01-23 Dick Porter <[email protected]>
  475. * ManualResetEvent.cs:
  476. * AutoResetEvent.cs: Fixed DOS line endings
  477. 2002-01-22 Veronica De Santis <[email protected]>
  478. * NativeEventCalls : Class that contains internal calls shared by Auto
  479. and Manual Reset Events
  480. * AutoResetEvents.cs : Added class AutoResetEvents and its implementation
  481. * ManualResetEvents.cs : Added class ManualResetEvents and its implementation
  482. 2002-01-16 Veronica De Santis <[email protected]>
  483. * WaitHandle.cs : Renamed handle to os_handle and make it protected
  484. instead of private.
  485. * Mutex.cs : Write the System.Threading.Mutex methods ( constructors
  486. and the ReleaseMutex)
  487. 2002-01-15 Dick Porter <[email protected]>
  488. * WaitHandle.cs:
  489. * Thread.cs: Make the runtime's idea of infinite timeouts coincide
  490. with the class library's
  491. 2002-01-10 Dick Porter <[email protected]>
  492. * WaitHandle.cs: Added checks for too many handles and null
  493. handles in WaitAll() and WaitAny
  494. 2002-01-05 Ravi Pratap <[email protected]>
  495. * AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
  496. decoration.
  497. * Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
  498. Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.
  499. 2001-12-11 Dick Porter <[email protected]>
  500. * WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
  501. internal calls.
  502. 2001-11-26 Dick Porter <[email protected]>
  503. * Thread.cs: DataSlot uses a single system TLS slot, and a
  504. hashtable per thread. Some minor changes to reflect the new
  505. internal calls using the new IO library, and the newly-supported
  506. bool returns from internal calls.
  507. * Monitor.cs: Use bool returns from internal calls now they are
  508. supported by the runtime. Coalesce enter with the try_enter
  509. internal call.
  510. Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <[email protected]>
  511. * Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.
  512. 2001-10-03 Dick Porter <[email protected]>
  513. * Monitor.cs: Implemented all methods except the two Wait()
  514. methods that take boolean parameters
  515. 2001-09-28 Dick Porter <[email protected]>
  516. * Thread.cs: Implemented AllocateDataSlot(),
  517. AllocateNamedDataSlot(), FreeNamedDataSlot(), GetData(),
  518. GetNamedDataSlot(), SetData(), IsBackground. Reworked Thread()
  519. and Start() to avoid a race condition. Added thread-safe state
  520. changing private operations.
  521. * Monitor.cs: Comment out the GetType() calls because it isn't implemented yet
  522. 2001-09-25 Dick Porter <[email protected]>
  523. * Thread.cs: Implement Join and timed Join, set correct state
  524. around Start, Join and Sleep calls, implement IsAlive and
  525. ThreadState properties.
  526. * ThreadState.cs (Threading): Added StopRequested,
  527. SuspendRequested, Suspended values
  528. 2001-09-23 Dick Porter <[email protected]>
  529. * Thread.cs: Implemented CurrentThread and Sleep (both versions)
  530. with internal calls, and Name.
  531. 2001-09-21 Dick Porter <[email protected]>
  532. * Thread.cs: Implement Thread(ThreadStart) constructor and Start()
  533. with an internal call
  534. * WaitHandle.cs: Close calls Dispose(false)
  535. 2001-09-13 Dick Porter <[email protected]>
  536. * ApartmentState.cs (Threading): Set the correct enum values
  537. 2001-09-13 Dick Porter <[email protected]>
  538. * ApartmentState.cs, AutoResetEvent.cs, IOCompletionCallback.cs,
  539. Interlocked.cs, LockCookie.cs, ManualResetEvent.cs, Monitor.cs,
  540. Mutex.cs, NativeOverlapped.cs, Overlapped.cs, ReaderWriterLock.cs,
  541. RegisteredWaitHandle.cs, SynchronizationLockException.cs,
  542. Thread.cs, ThreadAbortException.cs, ThreadInterruptedException.cs,
  543. ThreadPool.cs, ThreadStart.cs, ThreadStateException.cs,
  544. Timeout.cs, Timer.cs, TimerCallback.cs, WaitCallback.cs,
  545. WaitHandle.cs, WaitOrTimerCallback.cs: System.Threading class
  546. stubs.
  547. 2001-07-18 Michael Lambert <[email protected]>
  548. * ThreadPriority.cs, ThreadState.cs: Add.