ChangeLog 46 KB

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