ChangeLog 48 KB

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