ChangeLog 34 KB

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