ChangeLog 34 KB

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