ChangeLog 36 KB

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