ChangeLog 37 KB

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