ChangeLog 49 KB

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