ChangeLog 36 KB

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