ChangeLog 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572
  1. 2010-02-02 Jérémie Laval <[email protected]>
  2. * CancellationToken.cs:
  3. * CancellationTokenSource.cs:
  4. * ManualResetEventSlim.cs:
  5. * SemaphoreSlim.cs:
  6. * SpinLock.cs:
  7. * SpinWait.cs:
  8. * ThreadLocal.cs: Port to .NET 4 beta 2 API
  9. 2009-12-09 Jb Evain <[email protected]>
  10. * ThreadPool.cs (QueueUserWorkItem): properly throw
  11. an ANE instead of triggering a NRE when being passed a null callback.
  12. 2009-11-02 Miguel de Icaza <[email protected]>
  13. * Jumbo patch to drop support for pre-NET_2_0 code:
  14. Remove ONLY_1_1 code
  15. Remove NET_1_0 only code
  16. Remove NET_2_0 defines assuming the value is true.
  17. 2009-11-02 Sebastien Pouliot <[email protected]>
  18. * Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
  19. to true until after the null check and the return statement.
  20. 2009-11-02 Jérémie Laval <[email protected]>
  21. * Parallel.cs: Added fix for Bug #536919.
  22. 2009-10-25 Sebastien Pouliot <[email protected]>
  23. * Thread.cs: Fix validations for Join and Sleep overloads
  24. 2009-10-22 Sebastien Pouliot <[email protected]>
  25. * EventWaitHandle.cs: Add validation on the EventResetMode
  26. parameter used in the constructors
  27. * Monitor.cs: Fix validations for TryEnter and Wait. Reduce
  28. duplicated code between overloads.
  29. 2009-10-21 Sebastien Pouliot <[email protected]>
  30. * WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
  31. in Wait[One|Any|All]. Also call the overloaded (bool) methods for
  32. WaitAll to reduce code duplication.
  33. 2009-10-20 Sebastien Pouliot <[email protected]>
  34. * Timer.cs: Always call Init from every constructors to avoid
  35. duplicate checks. Fix validations on different dueTime and period
  36. (ctor and Change methods). Seal private TimerComparer class and
  37. avoid multiple (identical) casts in its Compare method. Seal
  38. private Scheduler class.
  39. 2009-10-20 Gonzalo Paniagua Javier <[email protected]>
  40. * Timer.cs: make sure we don't insert 2 timers with the same key.
  41. 2009-10-20 Jb Evain <[email protected]>
  42. * Thread.cs: change type of the current_appcontext field to object
  43. to avoid triggering static constructors unless explicitely required.
  44. 2009-10-16 Gonzalo Paniagua Javier <[email protected]>
  45. * Timer.cs: looks like any negative value is treated as Infinite.
  46. 2009-10-07 Sebastien Pouliot <[email protected]>
  47. * Thread.cs: Remove LocalDataStoreSlot-related methods from
  48. Moonlight build
  49. 2009-09-29 Rolf Bjarne Kvinge <[email protected]>
  50. * Thread.cs: StartSafe: ignore ThreadAbortExceptions.
  51. 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
  52. * Timer.cs: account for the time spent sending jobs to the queue.
  53. 2009-09-26 Mark Probst <[email protected]>
  54. * Thread.cs: Serialize the principal so as not to make it cross
  55. appdomains. Two new internal calls for copying byte arrays
  56. between domains.
  57. 2009-09-25 Mark Probst <[email protected]>
  58. * Thread.cs: The Thread class is split up into Thread and
  59. InternalThread now. We have exactly one InternalThread per
  60. thread, and at most one Thread per appdomain per thread. Most
  61. data is stored in InternalThread. All InternalThread objects live
  62. in the root domain.
  63. * Environment.cs: Corlib version bump.
  64. 2009-09-24 Gonzalo Paniagua Javier <[email protected]>
  65. * Timer.cs: no need to wake up the scheduler when removing the next
  66. scheduled item.
  67. 2009-09-23 Gonzalo Paniagua Javier <[email protected]>
  68. * Timer.cs: rewritten. It only has one queue now and it is sorted by
  69. due time. Before this changes, it was using a lot of CPU when there
  70. were a lot of 'future' timers.
  71. 2009-09-23 Sebastien Pouliot <[email protected]>
  72. * ExecutionContext.cs: Don't use SecurityContext and don't expose
  73. AsyncFlowControl for NET_2_1
  74. * ThreadAbortException.cs: Remove ExceptionState from NET_2_1
  75. * Thread.cs: Don't expose ApartmentState and remove Suspend and
  76. Resume methods for NET_2_1
  77. * ThreadPool.cs: Remove GetAvailableThreads and Unsafe* methods
  78. for NET_2_1
  79. 2009-09-22 Jb Evain <[email protected]>
  80. * Timer.cs: MONOTOUCH doesn't support remoting, so do not pass
  81. true to exitContext when calling WaitOne on a WaitHandle.
  82. 2009-09-22 Sebastien Pouliot <[email protected]>
  83. * Thread.cs: Remove [Get|Set]CompressedStack for NET_2_1
  84. 2009-09-21 Sebastien Pouliot <[email protected]>
  85. * Thread.cs: Remove CurrentPrincipal property for NET_2_1
  86. * ExecutionContext.cs: Remove Run method for NET_2_1
  87. 2009-09-20 Sebastien Pouliot <[email protected]>
  88. * EventWaitHandle.cs: Remove AccessControl usage for NET_2_1
  89. * Mutex.cs: Remove some ctors and AccessControl usage for NET_2_1
  90. * NativeEventCalls.cs: Remove AccessControl usage for NET_2_1
  91. 2009-08-19 Jérémie Laval <[email protected]>
  92. * ParallelLoopState.cs: Take in account that
  93. AtomicBoolean is a class.
  94. 2009-08-19 Jérémie Laval <[email protected]>
  95. * AtomicBoolean.cs: Turn it into a class
  96. * CountdownEvent.cs: Work on cached variable. Make sure
  97. count doesn't go under 0.
  98. 2009-08-11 Jérémie Laval <[email protected]>
  99. * Watch.cs:
  100. * SpinWait.cs:
  101. * CountdownEvent.cs:
  102. * CancellationToken.cs:
  103. * ICancelableOperation.cs:
  104. * CancellationTokenSource.cs:
  105. * CancellationTokenRegistration.cs: Add BOOTSTRAP_NET_4_0.
  106. 2009-08-11 Jérémie Laval <[email protected]>
  107. * Parallel.cs: Disable While method.
  108. * CountdownEvent.cs: Fix method signature.
  109. * Barrier.cs: Moved type.
  110. * AggregateException.cs: Moved type.
  111. 2009-08-04 Jérémie Laval <[email protected]>
  112. * SpinLock: Remove unused private methods.
  113. 2009-08-03 Zoltan Varga <[email protected]>
  114. * Thread.cs: Always call Thread_free_internal from the finalizer, since
  115. it frees other things besides the handle. Fixes #527576.
  116. 2009-07-31 Jérémie Laval <[email protected]>
  117. * Snzi.cs:
  118. * Parallel.cs:
  119. * SpinLock.cs:
  120. * SpinWait.cs:
  121. * ThreadLocal.cs:
  122. * SemaphoreSlim.cs:
  123. * CountdownEvent.cs:
  124. * ManualResetEventSlim.cs
  125. * CancellationTokenSource.cs: Various 4.0 b1 API mismatch fixes.
  126. 2009-07-30 Jérémie Laval <[email protected]>
  127. * AggregateException.cs:
  128. * AtomicBoolean.cs:
  129. * Barrier.cs:
  130. * CSnzi.cs:
  131. * CancellationToken.cs:
  132. * CancellationTokenRegistration.cs:
  133. * CancellationTokenSource.cs:
  134. * CountdownEvent.cs:
  135. * ICancelableOperation.cs:
  136. * LazyInitializer.cs:
  137. * ManualResetEventSlim.cs:
  138. * Parallel.cs:
  139. * ParallelLoopResult.cs:
  140. * ParallelLoopState.cs:
  141. * ParallelOptions.cs:
  142. * SemaphoreSlim.cs:
  143. * Snzi.cs:
  144. * SpinLock.cs:
  145. * SpinWait.cs:
  146. * ThreadLocal.cs:
  147. * Watch.cs: Add ParallelFx files for System.Threading namespace
  148. 2009-07-21 Jb Evain <[email protected]>
  149. * ThreadPool.cs: avoid an unecessary method call when not running
  150. in moonlight.
  151. 2009-07-20 Jb Evain <[email protected]>
  152. * Thread.cs: use the moonlight specific thread start
  153. hack for the net_2_1 profile exclusively.
  154. 2009-06-25 Miguel de Icaza <[email protected]>
  155. * Timer.cs: Throw ArgumentNullException if the callback is null.
  156. 2009-06-22 Bill Holmes <[email protected]>
  157. * Thread.cs : Adding interrupt_on_stop field.
  158. Contributed under MIT/X11 license.
  159. 2009-06-10 Rolf Bjarne Kvinge <[email protected]>
  160. * Thread.cs: MoonlightUnhandledException: ensure there's no way to
  161. reach native code with a managed exception.
  162. 2009-06-10 Sebastien Pouliot <[email protected]>
  163. * Thread.cs: Refactor calling Moonlight's OnUnhandledException to
  164. make sur the delegate it not called from a [SecuritySafeCritical]
  165. caller.
  166. * ThreadPool.cs: Reuse the above code for QueueUserWorkItem.
  167. Original patch from Alan McGovern
  168. 2009-06-10 Marek Safar <[email protected]>
  169. * LockRecursionException.cs: New file.
  170. 2009-04-21 Mark Probst <[email protected]>
  171. * Thread.cs: Make the execution context field thread-static to
  172. avoid it being shared between app domains.
  173. 2009-04-20 Rolf Bjarne Kvinge <[email protected]>
  174. * Thread.cs: For 2.1 ensure exceptions in threads are handled using the
  175. UnhandledException event mechanism in System.Windows.Application instead
  176. of crashing the application.
  177. 2009-04-18 Mark Probst <[email protected]>
  178. * Thread.cs: Don't keep the current number formatter here because
  179. it's shared between app domains.
  180. 2009-04-18 Mark Probst <[email protected]>
  181. * Thread.cs: Make the abort exception state a GC handle, to
  182. properly separate AppDomains. Add internal method for getting the
  183. state object.
  184. * ThreadAbortException.cs: Get the abort exception state via the
  185. method in Thread.
  186. 2009-04-12 Gonzalo Paniagua Javier <[email protected]>
  187. * WaitHandle.cs: implemented 2 missing WaitAny overloads.
  188. 2009-03-05 Rolf Bjarne Kvinge <[email protected]>
  189. * WaitHandle.cs: Added missing WaitOne overload.
  190. 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
  191. * WaitHandle.cs: implemented SignalAndWait.
  192. 2009-02-18 Jb Evain <[email protected]>
  193. * SynchronizationContext.cs: add NET_2_1 SetThreadStaticContext
  194. method, even if already obsolete.
  195. 2009-01-30 Andreia Gaita <[email protected]>
  196. * SynchronizationContext.cs: Remove moonlight hacks, dispatcher should
  197. be able to handle this now.
  198. 2008-12-20 Miguel de Icaza <[email protected]>
  199. * WaitHandle.cs: Add two overloads that were introduced in 3.5.
  200. 2008-11-25 Geoff Norton <[email protected]>
  201. * SynchronizationContext.cs: A temporary horrible hack to SyncContext
  202. to hard-wire all calls back to the main thread (moonlight-only) so that
  203. we can use our unit test harness. This will be fixed for 2.1 when we
  204. implement Dispatcher properly.
  205. 2008-10-30 Gonzalo Paniagua Javier <[email protected]>
  206. * Interlocked.cs: make CompareExchange internal in 1.1 for use by the
  207. runtime.
  208. 2008-09-19 Miguel de Icaza <[email protected]>
  209. * WaitHandle.cs (WaitOne): Add new 3.5 SP1 overload.
  210. Tue Sep 16 21:02:59 CEST 2008 Paolo Molaro <[email protected]>
  211. * Thread.cs: fixed SpinWait() implementation (bug #423582).
  212. Tue Sep 9 15:19:48 CEST 2008 Paolo Molaro <[email protected]>
  213. * Timer.cs: use a separate queue for timers that are far in the future
  214. so they don't need to be looked at as often (bug #418272).
  215. Better precision of recheduling time.
  216. 2008-07-03 Andreas Nahr <[email protected]>
  217. * ThreadPool.cs:
  218. * LockCookie.cs:
  219. * Interlocked.cs:
  220. * ExecutionContext.cs:
  221. * AsyncFlowControl.cs:
  222. * AbandonedMutexException.cs: Fix parameter names
  223. 2008-07-02 Zoltan Varga <[email protected]>
  224. * Timer.cs (SchedulerThread): Iterate through the keys of the hashtable instead
  225. of key-value pairs.
  226. 2008-06-18 Kornél Pál <[email protected]>
  227. * Thread.cs: Implement BeginThreadAffinity and EndThreadAffinity as no-op
  228. because managed and native threads are currently bound together.
  229. 2008-06-14 Zoltan Varga <[email protected]>
  230. * Thread.cs: Sync layout with unmanaged side.
  231. 2008-06-07 Zoltan Varga <[email protected]>
  232. * Monitor.cs: Implement Enter/Exit directly as icalls without managed wrapper
  233. methods.
  234. 2008-04-11 Zoltan Varga <[email protected]>
  235. * Thread.cs: Make in_currentculture non-static. Fixes #378892.
  236. 2008-04-07 Dick Porter <[email protected]>
  237. * Thread.cs: Fix throwing of exceptions when manipulating
  238. ApartmentState. Fixes part of bug 324338.
  239. 2008-04-01: Eyal Alaluf <[email protected]>
  240. * Thread.cs: Put a NumberFormatter instance as a member of the current
  241. thread so it can reused for performint ToString conversions.
  242. 2008-03-26 Massimiliano Mantione <[email protected]>
  243. * Thread.cs: Renamed "unused6" because it will be used to hold
  244. the "mono_thread_manage" callback.
  245. Tue Feb 26 17:51:58 CET 2008 Paolo Molaro <[email protected]>
  246. * Timer.cs: use a monotonic clock to schedule timers
  247. (fixes part of bug#347476).
  248. Fri Feb 22 11:23:53 CET 2008 Paolo Molaro <[email protected]>
  249. * Thread.cs: implemented Begin/EndCriticalRegion.
  250. 2008-02-03 Sebastien Pouliot <[email protected]>
  251. * WaitHandle.cs: Ifdef out some unused code (found by Gendarme).
  252. 2008-01-06 Zoltan Varga <[email protected]>
  253. * Thread.cs (set_CurrentCulture): If the culture is read-only, cache the result
  254. of serializing it.
  255. (set_CurrentUICulture): Ditto.
  256. 2008-01-03 Zoltan Varga <[email protected]>
  257. * Thread.cs (set_CurrentCulture): Avoid the serialization overhead if
  258. the new culture is equal to the old one.
  259. 2007-12-27 Zoltan Varga <[email protected]>
  260. * Thread.cs: Change the type of synch_cs to an IntPtr to be in synch with the
  261. unmanaged definition.
  262. 2007-11-20 Atsushi Enomoto <[email protected]>
  263. * ReaderWriterLock.cs : ... and avoid extra finalizer call.
  264. 2007-11-20 Atsushi Enomoto <[email protected]>
  265. * ReaderWriterLock.cs : adding missing 2.0 destructor (does nothing).
  266. Thu Nov 8 18:36:25 CET 2007 Paolo Molaro <[email protected]>
  267. * Timer.cs: if period is 0 with a non-infinite due time, we
  268. run the callback just once (bug #340212).
  269. 2007-10-24 Dick Porter <[email protected]>
  270. * Thread.cs: Call Thread_init on the new 2.0 constructors too.
  271. 2007-10-24 Dick Porter <[email protected]>
  272. * Thread.cs: Assign the ManagedThreadId when it is asked for,
  273. rather than in the constructor, so ThreadPool threads also work.
  274. Fixes bug 335579 (and doesn't break 325367 or 325566)
  275. 2007-10-24 Atsushi Enomoto <[email protected]>
  276. * SynchronizationContext.cs : removed SendOrPost().
  277. Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <[email protected]>
  278. * Timer.cs: better cleanup test for the expired array.
  279. Tue Oct 16 17:22:15 CEST 2007 Paolo Molaro <[email protected]>
  280. * Timer.cs: remove expired timers from the the jobs list.
  281. Tue Oct 16 12:14:43 CEST 2007 Paolo Molaro <[email protected]>
  282. * Timer.cs: rewrote to use threadpool threads to invoke the callbacks,
  283. avoid Thread.Abort and Thread.Interrupt and use a single scheduler
  284. thread, partially from the patch of Rafael Ferreira in bug #315999.
  285. Fixes bug #315999, #332206.
  286. 2007-10-15 Dick Porter <[email protected]>
  287. * Thread.cs: Initialise synch_cs to null now we aren't using it as
  288. a monitor lock
  289. 2007-09-25 Dick Porter <[email protected]>
  290. * Thread.cs: Keep ManagedThreadId constant over the lifetime of a
  291. Thread. Patch from [email protected] fixing bugs 325367 and
  292. 325566.
  293. 2007-09-25 Jonathan Pobst <[email protected]>
  294. * SynchronizationContext.cs: Implement SetSynchronizationContext.
  295. 2007-09-06 Dick Porter <[email protected]>
  296. * Timer.cs: Only hold a WeakReference to the runner thread, to
  297. work around an issue when finalizing at shutdown or (I think)
  298. appdomain unload. (Basically, the Thread was being finalized
  299. first, but the Timer's finalizer was still trying to reference it
  300. subsequently.)
  301. 2007-08-10 Gert Driesen <[email protected]>
  302. * Thread.cs: Throw ThreadStateException when retrieving ApartmentState
  303. or IsBackground if thread is stopped. Fixes bug #81658.
  304. 2007-08-08 Zoltan Varga <[email protected]>
  305. * Thread.cs: Add a fixme.
  306. 2007-07-21 Miguel de Icaza <[email protected]>
  307. * WaitHandle.cs (Handle): It turns out that we should never create
  308. new SafeWaitHandles, as applications will assume that a
  309. SafeWaitHandle pulled from this will be the same after a Handle
  310. update (from Gert's test):
  311. AutoResetEvent are1 = new AutoResetEvent (false);
  312. AutoResetEvent are2 = new AutoResetEvent (false);
  313. SafeWaitHandle swh1 = are1.SafeWaitHandle;
  314. Console.WriteLine ("#A1:" + !swh1.IsClosed);
  315. Console.WriteLine ("#A2:" + !swh1.IsInvalid);
  316. IntPtr dummyHandle = (IntPtr) 2;
  317. are1.Handle = dummyHandle;
  318. Console.WriteLine ("#A3:" + (are1.Handle == dummyHandle));
  319. Console.WriteLine ("#A4:" + !swh1.IsClosed);
  320. Console.WriteLine ("#A5:" + !swh1.IsClosed);
  321. Console.WriteLine ("#A6:" + !swh1.IsInvalid);
  322. Console.WriteLine ("#A7:" + !are1.SafeWaitHandle.IsClosed);
  323. Console.WriteLine ("#A8:" +
  324. !are1.SafeWaitHandle.IsInvalid);
  325. We would return in A4, A5, A6 true, even when we have set the
  326. Handle ourselves.
  327. *
  328. 2007-07-18 Miguel de Icaza <[email protected]>
  329. * WaitHandle.cs (Handle): in the 2.0 profile, explicitly dispose
  330. the old SafeWaitHandle, do not wait for the finalizer to run;
  331. Take ownership of the handle; The docs did not say that
  332. assigning to this value would lead to a leak, the docs said that
  333. in the 1.0 and 1.1 profiles assigning to this property might lead
  334. to a leak. My mistake.
  335. Fixes: 82134
  336. 2007-07-09 Atsushi Enomoto <[email protected]>
  337. * LockCookie.cs, AsyncFlowControl.cs :
  338. added missing operator == and !=.
  339. 2007-05-22 Jonathan Chambers <[email protected]>
  340. * Thread.cs: Use & to check ThreadState rather than ==.
  341. Fixes AlbumSurfer regression.
  342. 2007-05-09 Jonathan Chambers <[email protected]>
  343. * Thread.cs: Implement ApartmentState related items.
  344. 2007-05-02 Dick Porter <[email protected]>
  345. * ReaderWriterLock.cs: ReaderWriterLock derives from
  346. CriticalFinalizerObject in the 2.0 profile
  347. 2007-05-01 Dick Porter <[email protected]>
  348. * ThreadState.cs:
  349. * AsyncFlowControl.cs:
  350. * Interlocked.cs:
  351. * RegisteredWaitHandle.cs:
  352. * TimerCallback.cs:
  353. * ThreadStateException.cs:
  354. * Monitor.cs:
  355. * ThreadStart.cs:
  356. * WaitOrTimerCallback.cs:
  357. * LockCookie.cs:
  358. * EventWaitHandle.cs:
  359. * WaitHandle.cs:
  360. * ThreadAbortException.cs:
  361. * ThreadPriority.cs:
  362. * ReaderWriterLock.cs:
  363. * NativeOverlapped.cs:
  364. * Mutex.cs:
  365. * Overlapped.cs:
  366. * ThreadPool.cs:
  367. * ApartmentState.cs:
  368. * EventResetMode.cs:
  369. * SynchronizationLockException.cs:
  370. * ManualResetEvent.cs:
  371. * WaitCallback.cs:
  372. * IOCompletionCallback.cs:
  373. * AutoResetEvent.cs:
  374. * AbandonedMutexException.cs:
  375. * SendOrPostCallback.cs:
  376. * ThreadInterruptedException.cs: Update to 2.0 profile
  377. Thu Apr 19 16:47:52 CEST 2007 Paolo Molaro <[email protected]>
  378. * ThreadPool.cs: patch from Robert Jordan to implement
  379. ThreadPool.SetMaxThreads.
  380. 2007-04-03 Alp Toker <[email protected]>
  381. * Monitor.cs: Class is static in 2.0.
  382. 2007-03-27 Dick Porter <[email protected]>
  383. * Mutex.cs: Throw ApplicationException if ReleaseMutex() fails.
  384. Fixes bug 79358.
  385. Tue Jan 23 17:43:50 CET 2007 Paolo Molaro <[email protected]>
  386. * Thread.cs: mark the GC-tracked field with UIntPtr.
  387. 2006-12-31 Miguel de Icaza <[email protected]>
  388. * ThreadPool.cs: Stub a method.
  389. 2006-12-11 Miguel de Icaza <[email protected]>
  390. * WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
  391. patterns instead of using directly the IntPtr Handle.
  392. Refactor the code to reuse as much as possible, and follow the new
  393. conventions where appropriate.
  394. 2006-11-07 Robert Jordan <[email protected]>
  395. * WaitHandle.cs: Don't assume Assembly.GetEntryAssembly () !=
  396. null. Fixes bug #79859.
  397. 2006-11-02 Dick Porter <[email protected]>
  398. * Thread.cs: Use the new Interrupt and SpinWait icalls.
  399. 2006-07-04 Atsushi Enomoto <[email protected]>
  400. * WaitHandle.cs : CheckArray() is also used in WaitAny(), so added
  401. extra argument to skip STAThread check.
  402. 2006-06-30 Duncan Mak <[email protected]>
  403. * WaitHandle.cs (CheckArray): Avoid using reflection unless we
  404. really need to.
  405. 2006-06-29 Duncan Mak <[email protected]>
  406. * WaitHandle.cs (CheckArray): Throw NotSupportedException if the
  407. current thread is marked with the STAThreadAttribute. Fixes bug
  408. #78455.
  409. 2006-05-05 Sebastien Pouliot <[email protected]>
  410. * ExecutionContext.cs: Don't capture the compressed stack unless the
  411. security manager is active (this wasn't ready to be called in
  412. production code).
  413. 2004-04-29 Atsushi Enomoto <[email protected]>
  414. * Timer.cs : avoid NullReferenceException when it is already disposed.
  415. Patch by [email protected]. Fixed bug #78208.
  416. 2004-04-28 Atsushi Enomoto <[email protected]>
  417. * SynchronizationContext.cs : use ThreadPool in Post(), as suggested
  418. by cl (bug #78139).
  419. 2004-04-04 Atsushi Enomoto <[email protected]>
  420. * Thread.cs : base class is CriticalFinalizerObject.
  421. * ThreadStartException.cs : no public constructors.
  422. Wed Mar 29 18:29:55 CEST 2006 Paolo Molaro <[email protected]>
  423. * Thread.cs: update for the runtime changes to culture caching.
  424. Wed Mar 15 16:35:49 CET 2006 Paolo Molaro <[email protected]>
  425. * Thread.cs: updates for LocalDataStoreSlot: we use an array as
  426. storage for the slots now so that LocalDataStoreSlot objects an be
  427. garbage collected if the user doesn't keep a reference to them.
  428. 2006-02-09 Miguel de Icaza <[email protected]>
  429. * Monitor.cs: Patch from Thong Nguyen, Wait (.., Timeout) method
  430. should allow a -1 (Timeout.Infinite) to mean indefinite wait (the
  431. code already supported this.
  432. Removed also a LAMESPEC for missing argument checking in Wait with
  433. the int argument.
  434. Fixed the use of exceptions.
  435. 2005-12-23 Dick Porter <[email protected]>
  436. * EventWaitHandle.cs:
  437. * Mutex.cs: Implement OpenExisting
  438. * NativeEventCalls.cs: Add OpenEvent icall for OpenExisting in
  439. 2.0. Add a "created" boolean out parameter to CreateEvent icall.
  440. * ManualResetEvent.cs:
  441. * AutoResetEvent.cs: Update CreateEvent icall signature (now has
  442. "created" boolean out parameter.)
  443. 2005-12-17 Dick Porter <[email protected]>
  444. * ThreadStartException.cs:
  445. * EventWaitHandle.cs:
  446. * EventResetMode.cs:
  447. * AbandonedMutexException.cs: New for 2.0 profile
  448. * ThreadState.cs:
  449. * Interlocked.cs:
  450. * RegisteredWaitHandle.cs:
  451. * Monitor.cs:
  452. * ThreadPriority.cs:
  453. * Mutex.cs:
  454. * ManualResetEvent.cs:
  455. * AutoResetEvent.cs: Updated for 2.0 profile
  456. 2005-11-23 Zoltan Varga <[email protected]>
  457. * Interlocked.cs: Add T:class constraint to the generic
  458. CompareExchange and Exchange methods.
  459. 2005-11-17 Zoltan Varga <[email protected]>
  460. * Interlocked.cs: Add generic CompareExchange and Exchange methods.
  461. 2005-11-17 Sebastien Pouliot <[email protected]>
  462. * WaitHandleCannotBeOpenedException.cs: New (2.0). Is required to
  463. compile the Semaphore tests (in System.dll).
  464. 2005-10-23 Marek Safar <[email protected]>
  465. * SynchronizationContext.cs: A few simple fixes.
  466. 2005-10-06 Sebastien Pouliot <[email protected]>
  467. * Thread.cs: Copy an existing IPrincipal to new threads. Fix bug
  468. #76332.
  469. 2005-10-06 Sebastien Pouliot <[email protected]>
  470. * Thread.cs: Added new attributes, [ReliabilityContract] for
  471. destructor and [Obsolete] for [Get|Set]CompressedStack, that were
  472. added in 2.0 RC.
  473. 2005-09-11 Zoltan Varga <[email protected]>
  474. * Thread.cs (MemoryBarrier): Make this an icall.
  475. 2005-09-10 Zoltan Varga <[email protected]>
  476. * Thread.cs (Interrupt): Make this throw a NotImplementedException.
  477. 2005-09-09 Martin Baulig <[email protected]>
  478. * Timer.cs (Timer.Runner.Start): Silently catch
  479. ObjectDisposedException and return; works around some race
  480. condition on thread abort.
  481. 2005-08-19 Dick Porter <[email protected]>
  482. * Thread.cs: Reserve 64 bits for the thread ID.
  483. 2005-07-19 Martin Baulig <[email protected]>
  484. * Timer.cs (Timer.Runner.Start): Fix a race condition which was
  485. causing a hang on exit int he debugger: check `!disposed' before
  486. `start_event.WaitOne ()' and again after it.
  487. 2005-06-07 Gonzalo Paniagua Javier <[email protected]>
  488. * Thread.cs: check that the culture is valid for formatting
  489. (ie, (!neutral || invariant)).
  490. 2005-06-07 Sebastien Pouliot <[email protected]>
  491. * Thread.cs: Added _Thread interface (and members) and a few missing
  492. attributes (for both 1.1 and 2.0).
  493. 2005-06-06 Zoltan Varga <[email protected]>
  494. * Thread.cs Mutex.cs Monitor.cs: Add some missing 2.0 attributes.
  495. 2005-05-29 Sebastien Pouliot <[email protected]>
  496. * Timer.cs: Added new constructor for 2.0 and ComVisible attribute.
  497. * Timeout.cs: This is a static class in 2.0 and ComVisible attribute.
  498. 2005-05-26 Ben Maurer <[email protected]>
  499. * Thread.cs: Use a static object for a lock rather than
  500. typeof(Thread).
  501. 2005-05-26 Sebastien Pouliot <[email protected]>
  502. * SynchronizationContext.cs: Re-introduced SendOrPost method as it's
  503. being used in System.Web.Services.
  504. 2005-05-26 Sebastien Pouliot <[email protected]>
  505. * SynchronizationContext.cs: Updated to beta2 API so it doesn't depend
  506. on the switcher structure anymore (which will be removed from the
  507. build).
  508. 2005-05-24 Sebastien Pouliot <[email protected]>
  509. * Thread.cs: Removed #pragma which aren't supported by CSC 7.x.
  510. 2005-05-20 Sebastien Pouliot <[email protected]>
  511. * AsyncFlowControl.cs: Now available, as internal, in NET_1_1. This is
  512. required to get some methods from SecurityContext and ExecutionContext
  513. working.
  514. * CompressedStack.cs: Now includes the current CompressedStack in a new
  515. Capture.
  516. * ExecutionContext.cs: Includes more methods in NET_1_1 to enable
  517. ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
  518. stack propagation).
  519. * Thread.cs: Made ExecutionContext field accessible from the runtime.
  520. Added stack propagation when Thread.Start is called.
  521. * ThreadPool.cs: QueueUserWorkItem now does stack propagation (done in
  522. the runtime), so I "fixed" UnsafeQueueUserWorkItem not to do so.
  523. 2005-05-19 Miguel de Icaza <[email protected]>
  524. * Thread.cs: REmove warnings.
  525. 2005-05-16 Gonzalo Paniagua Javier <[email protected]>
  526. * Thread.cs: first check for null, then set in_currentculture.
  527. 2005-05-12 Lluis Sanchez Gual <[email protected]>
  528. * Thread.cs: Moved all checks done inside sync_lock to unmanaged code.
  529. Merged Thread_internal and Start_internal into a single icall, which
  530. does all work.
  531. 2005-05-11 Sebastien Pouliot <[email protected]>
  532. * CompressedStack.cs: Allow merging of an existing CompressedStack
  533. with the actual stack of the current Thread.
  534. * Thread.cs: GetCompressedStack and SetCompressedStack are public
  535. before 2.0 but couldn't be seen with mono-api-info because of it's
  536. LinkDemand for the ECMA public key. Removed unused CompressedStack
  537. private field (now part of the ExecutionContext).
  538. 2005-05-09 Sebastien Pouliot <[email protected]>
  539. * CompressedStack.cs: GetCompressedStack is public before 2.0 but
  540. couldn't be seen with mono-api-info because of it's LinkDemand for
  541. the ECMA public key. Stack capture occurs here if none exists on the
  542. current thread.
  543. 2005-04-28 Gonzalo Paniagua Javier <[email protected]>
  544. * ReaderWriterLock.cs: fix random ApplicationException errors. Tested
  545. with the System.Web.Cache stress program. Patch by Eyal Alayuf
  546. (Mainsoft). Fixes 74598.
  547. 2005-04-28 Sebastien Pouliot <[email protected]>
  548. * Thread.cs: Added property to get the ExecutionContext in 2.0. Fixed
  549. GetCompressedStack and made SetCompressedStack available (as internal)
  550. before NET_2_0.
  551. 2005-04-28 Sebastien Pouliot <[email protected]>
  552. * AsyncFlowControl.cs: Updated wrt beta2.
  553. * ExecutionContext.cs: Updated wrt beta2. Class is now internal in
  554. NET_1_1 to allow the compressed stack propagation to other threads.
  555. * CompressedStack.cs: Updated wrt beta2. Class is internal in NET_1_1
  556. to allow the compressed stack propagation to other threads.
  557. * ContextCallback.cs: Updated wrt beta2.
  558. * HostExecutionContext.cs: Updated wrt beta2.
  559. * HostExecutionContextManager.cs: Updated wrt beta2.
  560. * Thread.cs: Added internal property to get the ExecutionContext.
  561. 2005-04-19 Zoltan Varga <[email protected]>
  562. * Thread.cs: Add some unused fields.
  563. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  564. * ThreadPool.cs: BindHandle does nothing now.
  565. 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
  566. * Thread.cs: clear the Unstarted bit before calling Start_internal.
  567. Fixes bug #72738.
  568. 2005-04-04 Ben Maurer <[email protected]>
  569. * Thread.cs: Do argument checking for Current[UI]Culture to make
  570. the exception more clear for a null value being set.
  571. 2005-03-24 Sebastien Pouliot <[email protected]>
  572. * CompressedStack.cs: Added LinkDemand for UnmanagedCode and ECMA
  573. public key on GetCompressedStack method.
  574. * Mutex: Added LinkDemand for UnmanagedCode to create named (system
  575. wide) mutexes.
  576. * Thread.cs: Added LinkDemand for ECMA public key on [Get|Set]
  577. CompressedStack methods.
  578. * WaitHandle.cs: Added LinkDemand and InheritanceDemand for
  579. UnmanagedCode on set Handle property.
  580. 2005-03-10 Zoltan Varga <[email protected]>
  581. * Thread.cs: Make slothash a ThreadStatic field. Fixes #65414.
  582. 2005-02-21 Zoltan Varga <[email protected]>
  583. * Monitor.cs Interlocked.cs: Add net 2.0 ReliabilityContractAttributes.
  584. 2005-02-20 Zoltan Varga <[email protected]>
  585. * Interlocked.cs: Applied patch from Luca Barbieri ([email protected]). Add NET 2.0 methods.
  586. Tue Feb 15 18:19:11 CET 2005 Paolo Molaro <[email protected]>
  587. * Thread.cs: make the slothash a field in MonoThread.
  588. 2005-01-27 Sebastien Pouliot <[email protected]>
  589. * Overlapped.cs: Added check for ControlPolicy and ControlEvidence for
  590. Unsafe pack. Added MonoTODO for missing security stack propagation.
  591. * Thread.cs: Add security checks for ControlThread.
  592. * ThreadPool.cs: Added declarative security checks.
  593. Thu Jan 13 18:15:32 CET 2005 Paolo Molaro <[email protected]>
  594. * Thread.cs: implement stacksize and parameterized
  595. start functionality (requires matching runtime).
  596. 2005-01-12 Gonzalo Paniagua Javier <[email protected]>
  597. * ThreadAbortException.cs: added private serialization .ctor.
  598. 2004-12-20 Sebastien Pouliot <[email protected]>
  599. * CompressedStack.cs: Implemented most todo so it's usable for CAS.
  600. * CompressedStackSwitcher.cs: Implemented most todo.
  601. * Thread.cs: Implement support for getting/setting CompressedStack.
  602. 2004-12-15 Zoltan Varga <[email protected]>
  603. * Thread.cs: Change type of culture_info and ui_culture_info to
  604. IntPtr. Implement correct culture handling for the UI culture as
  605. well.
  606. 2004-12-14 Zoltan Varga <[email protected]>
  607. * Thread.cs: Optimize CurrentCulture to avoid initializing the
  608. serialization infrastructure in the common case when the culture is
  609. not set explicitly.
  610. 2004-12-06 Zoltan Varga <[email protected]>
  611. * Thread.cs: Add new fields 'serialized_culture_info{_len}'.
  612. * Thread.cs (CurrentCulture): Fix leaking of culture info objects
  613. across appdomains. Partially fixes #50049.
  614. 2004-12-05 Miguel de Icaza <[email protected]>
  615. * AutoResetEvent.cs (Set, Reset): If we are disposed, throw a
  616. ObjectDisposedEvent, helped track the WebConnection destructor
  617. issue.
  618. 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
  619. * Timer.cs: don't invoke the callback twice when the timer changes.
  620. Fixes bug #66116.
  621. 2004-09-08 Marek Safar <[email protected]>
  622. * Interlocked.cs: Class is static in NET_2_0.
  623. 2004-09-04 Sebastien Pouliot <[email protected]>
  624. * Thread.cs: Changed an imperative security demand to declarative
  625. (unsupported) so it doesn't (for now) call the security runtime.
  626. 2004-08-20 Sebastien Pouliot <[email protected]>
  627. * Thread.cs: Added Fx 2.0 properties/methods/attributes.
  628. 2004-08-12 Sebastien Pouliot <[email protected]>
  629. * CompressedStackSwitcher.cs: Added missing [ComVisible] and
  630. [ReliabilityContract] attributes.
  631. * ExecutionContext.cs: Added missing [ComVisible] and
  632. [Serializable] attributes.
  633. * HostExecutionContext.cs: Added missing [ComVisible] attribute.
  634. * HostExecutionContextManager.cs: Added missing [ComVisible] and
  635. [ReliabilityContract] attributes.
  636. * HostExecutionContextSwitcher.cs: Added missing Equals and
  637. GetHashCode methods and [ComVisible] and [ReliabilityContract] attrs.
  638. * ParameterizedThreadStart.cs: New delegate in NET_2_0.
  639. * SendOrPostCallback.cs: Added missing [ComVisible] attribute.
  640. * SynchronizationContext.cs: Added new (2.0 beta1) methods Copy and
  641. WaitHelper. Added missing [ComVisible] and [ReliabilityContract] attrs.
  642. * SynchronizationContextSwitcher.cs: Added missing [ComVisible] and
  643. [ReliabilityContract] attributes.
  644. 2004-08-08 Sebastien Pouliot <[email protected]>
  645. * HostExecutionContext.cs: Fx 2.0 stub required for AppDomain.
  646. * HostExecutionContextManager.cs: Fx 2.0 stub required for AppDomain.
  647. * HostExecutionContextSwitcher.cs: Fx 2.0 stub required for AppDomain.
  648. 2004-08-04 Gonzalo Paniagua Javier <[email protected]>
  649. * Timer.cs: don't invoke the callback if the period changes before the
  650. due time. Fixes bug #62421.
  651. 2004-07-27 Lluis Sanchez Gual <[email protected]>
  652. * ExecutionContext.cs, ExecutionContextSwitcher.cs,
  653. SynchronizationContext.cs, SynchronizationContextSwitcher.cs: Added
  654. 2.0 stubs.
  655. 2004-07-15 Dick Porter <[email protected]>
  656. * Thread.cs: Hold a lock in GetNamedDataSlot. Fixes bug 61582,
  657. based on patch by Sbastien Robitaille
  658. ([email protected]). Also fix instances of
  659. lock(typeof(Thread)) to lock a private object instead.
  660. 2004-07-14 Sebastien Pouliot <[email protected]>
  661. * AsyncFlowControl.cs: New structure in Fx 2.0 required in
  662. System.Security namespace.
  663. * CompressedStackSwitcher.cs: New structure in Fx 2.0 required in
  664. System.Security namespace.
  665. * ContextCallback.cs: New delegate in Fx 2.0 required in
  666. System.Security namespace.
  667. * CompressedStack.cs: Updated API for NET_2_0 profile.
  668. 2004-07-10 Lluis Sanchez Gual <[email protected]>
  669. * SendOrPostCallback.cs: New delegate.
  670. 2004-06-24 Dick Porter <[email protected]>
  671. * Mutex.cs: Implement the createdNew parameter
  672. 2004-06-15 Gert Driesen <[email protected]>
  673. * Thread.cs: changed return type of VolatileRead to UIntPtr
  674. * ThreadPool.cs: set return type of SetMinThreads to bool
  675. 2004-06-15 Lluis Sanchez Gual <[email protected]>
  676. * Thread.cs: Added new fields to keep sync with MonoThread.
  677. Removed state changes in Sleep and Join. The state change is now done
  678. in the icall. For accessing to internal fields lock with synch_lock
  679. instead of this, which can be a source of deadlocks.
  680. 2004-06-15 Lluis Sanchez Gual <[email protected]>
  681. * Timer.cs: Don't abort the thread if Dispose() is called from the runner
  682. thread.
  683. 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
  684. * Thread.cs:
  685. (CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
  686. the thread IPrincipal if we get it from the AppDomain.
  687. 2004-06-09 Gert Driesen <[email protected]>
  688. * CompressedStack.cs: Added finalizer to match public API of
  689. MS.NET
  690. 2004-05-19 Lluis Sanchez Gual <[email protected]>
  691. * Thread.cs: Some fixes in Abort. Implemented Suspend and Resume.
  692. Added internal interruption_requested field.
  693. 2004-05-13 Sebastien Pouliot <[email protected]>
  694. * CompressedStack.cs: Added an internal constructor so a default one
  695. doesn't appear with corcompare.
  696. * Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
  697. corcompare. Both throw a NotImplementedException.
  698. * ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
  699. overloads) to please corcompare. All throw a NotImplementedException.
  700. 2004-05-12 Zoltan Varga <[email protected]>
  701. * CompressedStack.cs: New file.
  702. 2004-04-15 Lluis Sanchez Gual <[email protected]>
  703. * ThreadPool.cs: Added GetMinThreads and SetMinThreads.
  704. * Timer.cs: In Change, return false if the timer has been disposed.
  705. In Dispose, notify the WaitHandle.
  706. 2004-04-11 Lluis Sanchez Gual <[email protected]>
  707. * ReaderWriterLock.cs: More fixes: never wait where acquiring a reader lock
  708. if the thread already has the lock. Added readyWaitingReaders variable to
  709. keep track of threads ready to get the reader lock.
  710. 2004-04-11 Lluis Sanchez Gual <[email protected]>
  711. * LockQueue.cs: Moved lockCount change inside the rwlock lock. Removed
  712. lock(this) when entering the rwlock to avoid a deadlock.
  713. * ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
  714. is not empty (even if state==0).
  715. 2004-04-09 Zoltan Varga <[email protected]>
  716. * Timer.cs: Call the callback immediately if dueTime is 0. Fixes
  717. #56728.
  718. 2004-04-08 Jackson Harper <[email protected]>
  719. * ReaderWriterLock.cs: Fix tyop
  720. 2004-04-08 Lluis Sanchez Gual <[email protected]>
  721. * ReaderWriterLock.cs: Changed some methods to private.
  722. * WaitHandle.cs: In Wait methods, release the synchronization context when
  723. exitContext is true.
  724. 2004-04-08 Gonzalo Paniagua Javier <[email protected]>
  725. * Timer.cs: call Abort on the Runner instance too.
  726. 2004-04-07 Jackson Harper <[email protected]>
  727. * Thread.cs: Use new culture info method for constructing the
  728. current culture.
  729. 2004-04-07 Lluis Sanchez Gual <[email protected]>
  730. * ReaderWriterLock.cs: When a thread holds a writer lock, a call to
  731. AcquireReaderLock works like a call to AcquireWriterLock.
  732. 2004-04-06 Lluis Sanchez Gual <[email protected]>
  733. * Monitor.cs: In Wait(), release the synchronization context when
  734. exitContext is true.
  735. 2004-04-06 Lluis Sanchez Gual <[email protected]>
  736. * LockCookie.cs: Keep in this class the count of reader or writer locks
  737. for a thread, not only whether it has locks or not.
  738. * LockQueue.cs: Added property for checking if a thread is waiting in
  739. the queue. Wait now returns a boolean that set to false on timeout
  740. expiration.
  741. * ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
  742. The main change is that now it keeps a reader lock count for each
  743. thread. This is needed since methods like ReleaseLock or
  744. UpgradeToWriterLock need to return a per-thread status in LockCookie.
  745. Also added support for recursive writer-lock requests.
  746. 2004-03-21 Gonzalo Paniagua Javier <[email protected]>
  747. * ThreadAbortException.cs: use same HResult as MS.
  748. * Timer.cs: abort the running thread when disposing the Timer. This
  749. fixes NullRefs when finishing xsp.
  750. 2004-03-15 Gonzalo Paniagua Javier <[email protected]>
  751. * NativeOverlapped.cs: added 2 new internal fields.
  752. * Overlapped.cs: implemented, but it's not used.
  753. * ThreadPool.cs: implemented BindHandle.
  754. 2004-03-08 Zoltan Varga <[email protected]>
  755. * Timer.cs (Dispose): Applied patch from Jaroslaw Kowalski
  756. ([email protected]). Fix finalization problems during appdomain unload.
  757. 2004-02-23 Jackson Harper <[email protected]>
  758. * LockCookie.cs: Add some fields for restoring locks.
  759. * ReaderWriterLock.cs: Implement
  760. * LockQueue.cs: New File - used for queueing thread locks in
  761. ReaderWriterLock.
  762. 2004-02-19 Jackson Harper <[email protected]>
  763. * Monitor.cs: Fix spelleng.
  764. 2004-02-09 Zoltan Varga <[email protected]>
  765. * Thread.cs: Add fields added to unmanaged MonoThread here as well.
  766. Fixes random errors caused by memory corruption.
  767. 2004-02-06 Zoltan Varga <[email protected]>
  768. * Thread.cs: Store the thread name in unmanaged memory, since the
  769. thread object is shared between appdomains.
  770. 2004-02-05 Sebastien Pouliot <[email protected]>
  771. * Thread.cs: Implemented CurrentPrincipal.
  772. 2004-01-22 Gonzalo Paniagua Javier <[email protected]>
  773. * Thread.cs: delayed thread creation until Start is called. If we
  774. don't do that and Start() is not called, the thread is leaked. First
  775. step towards fixing bug #53078.
  776. 2003-12-02 Dick Porter <[email protected]>
  777. * Thread.cs: Throw InvalidOperationException if Thread.Name is
  778. already set.
  779. 2003-12-01 Dick Porter <[email protected]>
  780. * Thread.cs: Implement CurrentCulture and CurrentUICulture
  781. 2003-11-12 Miguel de Icaza <[email protected]>
  782. * Thread.cs: Add new VolatileRead/VolatileWrite methods from 1.1
  783. 2003-10-23 Lluis Sanchez Gual <[email protected]>
  784. * Thread.cs: Added ResetDataStoreStatus and RestoreDataStoreStatus
  785. methods. They are used in CrossAppDomainChannel to save and restore
  786. thread's local data when switching between domains.
  787. 2003-10-08 Gonzalo Paniagua Javier <[email protected]>
  788. * ManualResetEvent.cs: added check for disposed.
  789. * Thread.cs: no need to init this field.
  790. 2003-10-01 Zoltan Varga <[email protected]>
  791. * Thread.cs: Add locking to AllocateNamedDataSlot and
  792. FreeNamedDataSlot.
  793. Wed Aug 20 12:01:36 CEST 2003 Paolo Molaro <[email protected]>
  794. * Thread.cs: put all the fields at the start and add
  795. more fields needed by the runtime.
  796. 2003-08-14 Lluis Sanchez Gual <[email protected]>
  797. * Thread.cs: SetData() method: use Hashtable.Contains to check
  798. if a dataslot has been allocated (value could be null).
  799. 2003-07-23 Duncan Mak <[email protected]>
  800. * WaitHandle.cs (CheckDisposed): This method is not in the public
  801. API, mark it as 'internal'.
  802. 2003-07-01 Dick Porter <[email protected]>
  803. * Thread.cs: Throw an exception if thread creation failed.
  804. (Better than just blowing up later.)
  805. 2003-06-27 Dietmar Maurer <[email protected]>
  806. * ThreadPool.cs: use async delegate invoke.
  807. 2003-06-25 Dick Porter <[email protected]>
  808. * WaitHandle.cs: Default handle value should be InvalidHandle, not
  809. Zero.
  810. 2003-06-21 Gonzalo Paniagua Javier <[email protected]>
  811. * ThreadPool.cs: correctly create a TimeSpan with provided the number of
  812. milliseconds.
  813. * WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
  814. 2003-06-06 Gonzalo Paniagua Javier <[email protected]>
  815. * WaitHandle.cs: checks and exceptions.
  816. 2003-06-02 Gonzalo Paniagua Javier <[email protected]>
  817. * NativeEventCalls.cs: added CloseEvent_intenal.
  818. * WaitHandle.cs: call CloseEvent_internal when disposing.
  819. 2003-05-31 Gonzalo Paniagua Javier <[email protected]>
  820. * RegisteredWaitHandle.cs: check that the callback is not null before
  821. invoking.
  822. * ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
  823. #43963). Queue the item before setting the handle. If there's a timeout,
  824. avoid trying to Dequeue, getting the exception et al, just continue the
  825. loop.
  826. Mon May 19 09:07:45 CEST 2003 Paolo Molaro <[email protected]>
  827. * Monitor.cs: removed test_owner, the check is already done in the
  828. icall.
  829. Tue May 13 15:34:29 CEST 2003 Paolo Molaro <[email protected]>
  830. * Thread.cs: added missing field used by the runtime and
  831. a new field to support thread-static data.
  832. 2003-04-17 Pedro Mart?ez Juli? <[email protected]>
  833. * Timer.cs: Change the position of two lines because they were
  834. before the "if" that ensures the integrity. After this, the first of
  835. that two lines was producing a NullReferenceException.
  836. 2003-04-09 Dick Porter <[email protected]>
  837. * Thread.cs: Make sure a reference to the ThreadStart delegate is
  838. held. There's no telling how long it will be before
  839. Thread.Start() is called, and GC might destroy the delegate.
  840. Thread() and Start() need to be rewritten so that the runtime
  841. creates the new thread when Start() is called, which will simplify
  842. the code a great deal.
  843. 2003-03-20 Miguel de Icaza <[email protected]>
  844. * Thread.cs (CurrentCuluture): use the invaraint culture instead
  845. of "" for the current_culture setting.
  846. 2003-03-25 Zoltan Varga <[email protected]>
  847. * Thread.cs: Fix visibility of ResetAbort().
  848. 2003-03-18 Dick Porter <[email protected]>
  849. * Thread.cs: Keep the thread state updated in all the places that
  850. require it. (Suspend, Resume and Interrupt not handled yet)
  851. 2003-03-03 Lluis Sanchez Gual <[email protected]>
  852. * Thread.cs: Changed implementation of CurrentContext, adapted to the changes
  853. in the runtime.
  854. 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
  855. * Thread.cs: implemented CurrentContext.
  856. 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
  857. * Thread.cs: made the thread_id for the current thread accesible through
  858. an internal property.
  859. 2003-02-17 Dick Porter <[email protected]>
  860. * Thread.cs: Added the Start semaphore field to the class. Update
  861. the thread state after Start() has returned, not before.
  862. 2003-02-13 Zoltan Varga <[email protected]>
  863. * Thread.cs (Sleep): Timeout.Infinite is a value argument.
  864. 2003-02-11 Dick Porter <[email protected]>
  865. * Monitor.cs: Infinite wait is Infinite, not 0 ms
  866. 2003-02-10 Gonzalo Paniagua Javier <[email protected]>
  867. * Thread.cs: fixed bug #37759.
  868. 2003-02-07 Patrik Torstensson
  869. * Timer.cs: Set the Background thread flag for the timer thread
  870. 2003-02-05 Patrik Torstensson
  871. * ThreadPool.cs: Reformated and fixed issue that made all thread exit the pool.
  872. 2003-02-04 Lluis Sanchez Gual <[email protected]>
  873. * ThreadPool.cs: Implemented RegisterWaitForSingleObject methods.
  874. Tue Jan 28 17:55:59 CET 2003 Paolo Molaro <[email protected]>
  875. * Thread.cs: delay-init datastorehash.
  876. 2003-01-10 Patrik Torstensson <[email protected]>
  877. * ThreadPool.cs: Temporary removed the usage of monitor thread, implemented a
  878. model more equal to the MS one.
  879. 2002-12-10 Dick Porter <[email protected]>
  880. * Monitor.cs:
  881. * Thread.cs:
  882. * ThreadPool.cs:
  883. * Timer.cs:
  884. * WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
  885. ms, not Milliseconds.
  886. 2002-12-07 Martin Baulig <[email protected]>
  887. * Timer.cs: Make it actually work; now it no longer sets your
  888. application on fire if you use a zero periode and Timer.Change()
  889. actually works.
  890. 2002-11-11 Gonzalo Paniagua Javier <[email protected]>
  891. * Timer.cs: implemented more stuff. It works now.
  892. 2002-10-25 Zoltan Varga <[email protected]>
  893. * Thread.cs: Implement GetDomain() and GetDomainID().
  894. 2002-10-24 Gonzalo Paniagua Javier <[email protected]>
  895. * ThreadPool.cs: now the monitor thread is not sleeping and checking if
  896. more worker threads needed. It waits on _DataInQueue. If (and only if)
  897. there's data in the queue it checks if more worker threads needed and
  898. then sleeps 0.5s before waiting for queued data again.
  899. 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
  900. * ThreadPool.cs: set IsThreadPoolThread before starting the worker.
  901. 2002-09-11 Dick Porter <[email protected]>
  902. * Mutex.cs:
  903. * ManualResetEvent.cs:
  904. * AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
  905. the private field
  906. * WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
  907. method
  908. 2002-09-03 Dick Porter <[email protected]>
  909. * Thread.cs: Added thread ID field
  910. 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
  911. * WaitHandle.cs: IDisposable fixes.
  912. 2002-08-14 Dick Porter <[email protected]>
  913. * Thread.cs: Make CurrentUICulture act the same as CurrentCulture
  914. for now.
  915. 2002-08-12 Dietmar Maurer <[email protected]>
  916. * ThreadAbortException.cs: impl. ExceptionState property.
  917. * Thread.cs: moved all instance variables to the start of the
  918. class. added support for Thread::Abort()
  919. 2002-04-30 Dick Porter <[email protected]>
  920. * Thread.cs: If LocalDataStoreSlot already has data set, remove it
  921. before adding a new one.
  922. Use the Thread object destructor to tell the runtime to close the
  923. thread handle.
  924. 2002-04-14 Patrik Torstensson <[email protected]>
  925. * Interlocked.cs: made all methods icalls.
  926. 2002-04-14 Gonzalo Paniagua Javier <[email protected]>
  927. * IOCompletionCallback.cs: added attributes to the delegate
  928. (CLSCompliant(false) and Serializable).
  929. 2002-04-14 Patrik Torstensson <[email protected]>
  930. * Thread.cs: Fixed IsThreadPoolThread to use a internal property instead of extending
  931. the threadstate enum.
  932. * ThreadPool.cs: Now using the internal Isthreadpoolthread property
  933. * ThreadState.cs: removed non-standard enum (ThreadPoolThread)
  934. 2002-04-14 Patrik Torstensson <[email protected]>
  935. * ThreadState.cs: Added enum for threadpool thread
  936. * Thread.cs: changed the set/clr_state to be internal (used from threadpool)
  937. * Thread.cs: Added IsThreadPoolThread
  938. * ThreadPool.cs: Implementation of QueueUserWorkItem
  939. Wed Feb 13 21:51:30 CET 2002 Paolo Molaro <[email protected]>
  940. * Thread.cs: implement CurrentCulture property needed by
  941. Convert.ChangeType() (used when compiling enums).
  942. 2002-01-23 Dick Porter <[email protected]>
  943. * ManualResetEvent.cs:
  944. * AutoResetEvent.cs: Fixed DOS line endings
  945. 2002-01-22 Veronica De Santis <[email protected]>
  946. * NativeEventCalls : Class that contains internal calls shared by Auto
  947. and Manual Reset Events
  948. * AutoResetEvents.cs : Added class AutoResetEvents and its implementation
  949. * ManualResetEvents.cs : Added class ManualResetEvents and its implementation
  950. 2002-01-16 Veronica De Santis <[email protected]>
  951. * WaitHandle.cs : Renamed handle to os_handle and make it protected
  952. instead of private.
  953. * Mutex.cs : Write the System.Threading.Mutex methods ( constructors
  954. and the ReleaseMutex)
  955. 2002-01-15 Dick Porter <[email protected]>
  956. * WaitHandle.cs:
  957. * Thread.cs: Make the runtime's idea of infinite timeouts coincide
  958. with the class library's
  959. 2002-01-10 Dick Porter <[email protected]>
  960. * WaitHandle.cs: Added checks for too many handles and null
  961. handles in WaitAll() and WaitAny
  962. 2002-01-05 Ravi Pratap <[email protected]>
  963. * AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
  964. decoration.
  965. * Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
  966. Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.
  967. 2001-12-11 Dick Porter <[email protected]>
  968. * WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
  969. internal calls.
  970. 2001-11-26 Dick Porter <[email protected]>
  971. * Thread.cs: DataSlot uses a single system TLS slot, and a
  972. hashtable per thread. Some minor changes to reflect the new
  973. internal calls using the new IO library, and the newly-supported
  974. bool returns from internal calls.
  975. * Monitor.cs: Use bool returns from internal calls now they are
  976. supported by the runtime. Coalesce enter with the try_enter
  977. internal call.
  978. Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <[email protected]>
  979. * Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.
  980. 2001-10-03 Dick Porter <[email protected]>
  981. * Monitor.cs: Implemented all methods except the two Wait()
  982. methods that take boolean parameters
  983. 2001-09-28 Dick Porter <[email protected]>
  984. * Thread.cs: Implemented AllocateDataSlot(),
  985. AllocateNamedDataSlot(), FreeNamedDataSlot(), GetData(),
  986. GetNamedDataSlot(), SetData(), IsBackground. Reworked Thread()
  987. and Start() to avoid a race condition. Added thread-safe state
  988. changing private operations.
  989. * Monitor.cs: Comment out the GetType() calls because it isn't implemented yet
  990. 2001-09-25 Dick Porter <[email protected]>
  991. * Thread.cs: Implement Join and timed Join, set correct state
  992. around Start, Join and Sleep calls, implement IsAlive and
  993. ThreadState properties.
  994. * ThreadState.cs (Threading): Added StopRequested,
  995. SuspendRequested, Suspended values
  996. 2001-09-23 Dick Porter <[email protected]>
  997. * Thread.cs: Implemented CurrentThread and Sleep (both versions)
  998. with internal calls, and Name.
  999. 2001-09-21 Dick Porter <[email protected]>
  1000. * Thread.cs: Implement Thread(ThreadStart) constructor and Start()
  1001. with an internal call
  1002. * WaitHandle.cs: Close calls Dispose(false)
  1003. 2001-09-13 Dick Porter <[email protected]>
  1004. * ApartmentState.cs (Threading): Set the correct enum values
  1005. 2001-09-13 Dick Porter <[email protected]>
  1006. * ApartmentState.cs, AutoResetEvent.cs, IOCompletionCallback.cs,
  1007. Interlocked.cs, LockCookie.cs, ManualResetEvent.cs, Monitor.cs,
  1008. Mutex.cs, NativeOverlapped.cs, Overlapped.cs, ReaderWriterLock.cs,
  1009. RegisteredWaitHandle.cs, SynchronizationLockException.cs,
  1010. Thread.cs, ThreadAbortException.cs, ThreadInterruptedException.cs,
  1011. ThreadPool.cs, ThreadStart.cs, ThreadStateException.cs,
  1012. Timeout.cs, Timer.cs, TimerCallback.cs, WaitCallback.cs,
  1013. WaitHandle.cs, WaitOrTimerCallback.cs: System.Threading class
  1014. stubs.
  1015. 2001-07-18 Michael Lambert <[email protected]>
  1016. * ThreadPriority.cs, ThreadState.cs: Add.