ChangeLog 50 KB

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