1 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3 * Thread.cs: StartSafe: ignore ThreadAbortExceptions.
5 2009-09-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
7 * Timer.cs: account for the time spent sending jobs to the queue.
9 2009-09-26 Mark Probst <mark.probst@gmail.com>
11 * Thread.cs: Serialize the principal so as not to make it cross
12 appdomains. Two new internal calls for copying byte arrays
15 2009-09-25 Mark Probst <mark.probst@gmail.com>
17 * Thread.cs: The Thread class is split up into Thread and
18 InternalThread now. We have exactly one InternalThread per
19 thread, and at most one Thread per appdomain per thread. Most
20 data is stored in InternalThread. All InternalThread objects live
23 * Environment.cs: Corlib version bump.
25 2009-09-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
27 * Timer.cs: no need to wake up the scheduler when removing the next
30 2009-09-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
32 * Timer.cs: rewritten. It only has one queue now and it is sorted by
33 due time. Before this changes, it was using a lot of CPU when there
34 were a lot of 'future' timers.
36 2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
38 * ExecutionContext.cs: Don't use SecurityContext and don't expose
39 AsyncFlowControl for NET_2_1
40 * ThreadAbortException.cs: Remove ExceptionState from NET_2_1
41 * Thread.cs: Don't expose ApartmentState and remove Suspend and
42 Resume methods for NET_2_1
43 * ThreadPool.cs: Remove GetAvailableThreads and Unsafe* methods
46 2009-09-22 Jb Evain <jbevain@novell.com>
48 * Timer.cs: MONOTOUCH doesn't support remoting, so do not pass
49 true to exitContext when calling WaitOne on a WaitHandle.
51 2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
53 * Thread.cs: Remove [Get|Set]CompressedStack for NET_2_1
55 2009-09-21 Sebastien Pouliot <sebastien@ximian.com>
57 * Thread.cs: Remove CurrentPrincipal property for NET_2_1
58 * ExecutionContext.cs: Remove Run method for NET_2_1
60 2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
62 * EventWaitHandle.cs: Remove AccessControl usage for NET_2_1
63 * Mutex.cs: Remove some ctors and AccessControl usage for NET_2_1
64 * NativeEventCalls.cs: Remove AccessControl usage for NET_2_1
66 2009-08-19 Jérémie Laval <jeremie.laval@gmail.com>
68 * ParallelLoopState.cs: Take in account that
69 AtomicBoolean is a class.
71 2009-08-19 Jérémie Laval <jeremie.laval@gmail.com>
73 * AtomicBoolean.cs: Turn it into a class
74 * CountdownEvent.cs: Work on cached variable. Make sure
75 count doesn't go under 0.
77 2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
82 * CancellationToken.cs:
83 * ICancelableOperation.cs:
84 * CancellationTokenSource.cs:
85 * CancellationTokenRegistration.cs: Add BOOTSTRAP_NET_4_0.
87 2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
89 * Parallel.cs: Disable While method.
90 * CountdownEvent.cs: Fix method signature.
91 * Barrier.cs: Moved type.
92 * AggregateException.cs: Moved type.
94 2009-08-04 Jérémie Laval <jeremie.laval@gmail.com>
96 * SpinLock: Remove unused private methods.
98 2009-08-03 Zoltan Varga <vargaz@gmail.com>
100 * Thread.cs: Always call Thread_free_internal from the finalizer, since
101 it frees other things besides the handle. Fixes #527576.
103 2009-07-31 Jérémie Laval <jeremie.laval@gmail.com>
112 * ManualResetEventSlim.cs
113 * CancellationTokenSource.cs: Various 4.0 b1 API mismatch fixes.
115 2009-07-30 Jérémie Laval <jeremie.laval@gmail.com>
117 * AggregateException.cs:
121 * CancellationToken.cs:
122 * CancellationTokenRegistration.cs:
123 * CancellationTokenSource.cs:
125 * ICancelableOperation.cs:
126 * LazyInitializer.cs:
127 * ManualResetEventSlim.cs:
129 * ParallelLoopResult.cs:
130 * ParallelLoopState.cs:
131 * ParallelOptions.cs:
137 * Watch.cs: Add ParallelFx files for System.Threading namespace
139 2009-07-21 Jb Evain <jbevain@novell.com>
141 * ThreadPool.cs: avoid an unecessary method call when not running
144 2009-07-20 Jb Evain <jbevain@novell.com>
146 * Thread.cs: use the moonlight specific thread start
147 hack for the net_2_1 profile exclusively.
149 2009-06-25 Miguel de Icaza <miguel@novell.com>
151 * Timer.cs: Throw ArgumentNullException if the callback is null.
153 2009-06-22 Bill Holmes <billholmes54@gmail.com>
155 * Thread.cs : Adding interrupt_on_stop field.
157 Contributed under MIT/X11 license.
159 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
161 * Thread.cs: MoonlightUnhandledException: ensure there's no way to
162 reach native code with a managed exception.
164 2009-06-10 Sebastien Pouliot <sebastien@ximian.com>
166 * Thread.cs: Refactor calling Moonlight's OnUnhandledException to
167 make sur the delegate it not called from a [SecuritySafeCritical]
169 * ThreadPool.cs: Reuse the above code for QueueUserWorkItem.
170 Original patch from Alan McGovern
172 2009-06-10 Marek Safar <marek.safar@gmail.com>
174 * LockRecursionException.cs: New file.
176 2009-04-21 Mark Probst <mark.probst@gmail.com>
178 * Thread.cs: Make the execution context field thread-static to
179 avoid it being shared between app domains.
181 2009-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
183 * Thread.cs: For 2.1 ensure exceptions in threads are handled using the
184 UnhandledException event mechanism in System.Windows.Application instead
185 of crashing the application.
187 2009-04-18 Mark Probst <mark.probst@gmail.com>
189 * Thread.cs: Don't keep the current number formatter here because
190 it's shared between app domains.
192 2009-04-18 Mark Probst <mark.probst@gmail.com>
194 * Thread.cs: Make the abort exception state a GC handle, to
195 properly separate AppDomains. Add internal method for getting the
198 * ThreadAbortException.cs: Get the abort exception state via the
201 2009-04-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
203 * WaitHandle.cs: implemented 2 missing WaitAny overloads.
205 2009-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
207 * WaitHandle.cs: Added missing WaitOne overload.
209 2009-02-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
211 * WaitHandle.cs: implemented SignalAndWait.
213 2009-02-18 Jb Evain <jbevain@novell.com>
215 * SynchronizationContext.cs: add NET_2_1 SetThreadStaticContext
216 method, even if already obsolete.
218 2009-01-30 Andreia Gaita <avidigal@novell.com>
220 * SynchronizationContext.cs: Remove moonlight hacks, dispatcher should
221 be able to handle this now.
223 2008-12-20 Miguel de Icaza <miguel@novell.com>
225 * WaitHandle.cs: Add two overloads that were introduced in 3.5.
227 2008-11-25 Geoff Norton <gnorton@novell.com>
229 * SynchronizationContext.cs: A temporary horrible hack to SyncContext
230 to hard-wire all calls back to the main thread (moonlight-only) so that
231 we can use our unit test harness. This will be fixed for 2.1 when we
232 implement Dispatcher properly.
234 2008-10-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
236 * Interlocked.cs: make CompareExchange internal in 1.1 for use by the
239 2008-09-19 Miguel de Icaza <miguel@novell.com>
241 * WaitHandle.cs (WaitOne): Add new 3.5 SP1 overload.
243 Tue Sep 16 21:02:59 CEST 2008 Paolo Molaro <lupus@ximian.com>
245 * Thread.cs: fixed SpinWait() implementation (bug #423582).
247 Tue Sep 9 15:19:48 CEST 2008 Paolo Molaro <lupus@ximian.com>
249 * Timer.cs: use a separate queue for timers that are far in the future
250 so they don't need to be looked at as often (bug #418272).
251 Better precision of recheduling time.
253 2008-07-03 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
258 * ExecutionContext.cs:
259 * AsyncFlowControl.cs:
260 * AbandonedMutexException.cs: Fix parameter names
262 2008-07-02 Zoltan Varga <vargaz@gmail.com>
264 * Timer.cs (SchedulerThread): Iterate through the keys of the hashtable instead
267 2008-06-18 Kornél Pál <kornelpal@gmail.com>
269 * Thread.cs: Implement BeginThreadAffinity and EndThreadAffinity as no-op
270 because managed and native threads are currently bound together.
272 2008-06-14 Zoltan Varga <vargaz@gmail.com>
274 * Thread.cs: Sync layout with unmanaged side.
276 2008-06-07 Zoltan Varga <vargaz@gmail.com>
278 * Monitor.cs: Implement Enter/Exit directly as icalls without managed wrapper
281 2008-04-11 Zoltan Varga <vargaz@gmail.com>
283 * Thread.cs: Make in_currentculture non-static. Fixes #378892.
285 2008-04-07 Dick Porter <dick@ximian.com>
287 * Thread.cs: Fix throwing of exceptions when manipulating
288 ApartmentState. Fixes part of bug 324338.
290 2008-04-01: Eyal Alaluf <eyala@mainsoft.com>
292 * Thread.cs: Put a NumberFormatter instance as a member of the current
293 thread so it can reused for performint ToString conversions.
295 2008-03-26 Massimiliano Mantione <massi@ximian.com>
296 * Thread.cs: Renamed "unused6" because it will be used to hold
297 the "mono_thread_manage" callback.
299 Tue Feb 26 17:51:58 CET 2008 Paolo Molaro <lupus@ximian.com>
301 * Timer.cs: use a monotonic clock to schedule timers
302 (fixes part of bug#347476).
304 Fri Feb 22 11:23:53 CET 2008 Paolo Molaro <lupus@ximian.com>
306 * Thread.cs: implemented Begin/EndCriticalRegion.
308 2008-02-03 Sebastien Pouliot <sebastien@ximian.com>
310 * WaitHandle.cs: Ifdef out some unused code (found by Gendarme).
312 2008-01-06 Zoltan Varga <vargaz@gmail.com>
314 * Thread.cs (set_CurrentCulture): If the culture is read-only, cache the result
316 (set_CurrentUICulture): Ditto.
318 2008-01-03 Zoltan Varga <vargaz@gmail.com>
320 * Thread.cs (set_CurrentCulture): Avoid the serialization overhead if
321 the new culture is equal to the old one.
323 2007-12-27 Zoltan Varga <vargaz@gmail.com>
325 * Thread.cs: Change the type of synch_cs to an IntPtr to be in synch with the
326 unmanaged definition.
328 2007-11-20 Atsushi Enomoto <atsushi@ximian.com>
330 * ReaderWriterLock.cs : ... and avoid extra finalizer call.
332 2007-11-20 Atsushi Enomoto <atsushi@ximian.com>
334 * ReaderWriterLock.cs : adding missing 2.0 destructor (does nothing).
336 Thu Nov 8 18:36:25 CET 2007 Paolo Molaro <lupus@ximian.com>
338 * Timer.cs: if period is 0 with a non-infinite due time, we
339 run the callback just once (bug #340212).
341 2007-10-24 Dick Porter <dick@ximian.com>
343 * Thread.cs: Call Thread_init on the new 2.0 constructors too.
345 2007-10-24 Dick Porter <dick@ximian.com>
347 * Thread.cs: Assign the ManagedThreadId when it is asked for,
348 rather than in the constructor, so ThreadPool threads also work.
349 Fixes bug 335579 (and doesn't break 325367 or 325566)
351 2007-10-24 Atsushi Enomoto <atsushi@ximian.com>
353 * SynchronizationContext.cs : removed SendOrPost().
355 Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
357 * Timer.cs: better cleanup test for the expired array.
359 Tue Oct 16 17:22:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
361 * Timer.cs: remove expired timers from the the jobs list.
363 Tue Oct 16 12:14:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
365 * Timer.cs: rewrote to use threadpool threads to invoke the callbacks,
366 avoid Thread.Abort and Thread.Interrupt and use a single scheduler
367 thread, partially from the patch of Rafael Ferreira in bug #315999.
368 Fixes bug #315999, #332206.
370 2007-10-15 Dick Porter <dick@ximian.com>
372 * Thread.cs: Initialise synch_cs to null now we aren't using it as
375 2007-09-25 Dick Porter <dick@ximian.com>
377 * Thread.cs: Keep ManagedThreadId constant over the lifetime of a
378 Thread. Patch from jlarimer@gmail.com fixing bugs 325367 and
381 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
383 * SynchronizationContext.cs: Implement SetSynchronizationContext.
385 2007-09-06 Dick Porter <dick@ximian.com>
387 * Timer.cs: Only hold a WeakReference to the runner thread, to
388 work around an issue when finalizing at shutdown or (I think)
389 appdomain unload. (Basically, the Thread was being finalized
390 first, but the Timer's finalizer was still trying to reference it
393 2007-08-10 Gert Driesen <drieseng@users.sourceforge.net>
395 * Thread.cs: Throw ThreadStateException when retrieving ApartmentState
396 or IsBackground if thread is stopped. Fixes bug #81658.
398 2007-08-08 Zoltan Varga <vargaz@gmail.com>
400 * Thread.cs: Add a fixme.
402 2007-07-21 Miguel de Icaza <miguel@novell.com>
404 * WaitHandle.cs (Handle): It turns out that we should never create
405 new SafeWaitHandles, as applications will assume that a
406 SafeWaitHandle pulled from this will be the same after a Handle
407 update (from Gert's test):
410 AutoResetEvent are1 = new AutoResetEvent (false);
411 AutoResetEvent are2 = new AutoResetEvent (false);
412 SafeWaitHandle swh1 = are1.SafeWaitHandle;
413 Console.WriteLine ("#A1:" + !swh1.IsClosed);
414 Console.WriteLine ("#A2:" + !swh1.IsInvalid);
415 IntPtr dummyHandle = (IntPtr) 2;
416 are1.Handle = dummyHandle;
417 Console.WriteLine ("#A3:" + (are1.Handle == dummyHandle));
418 Console.WriteLine ("#A4:" + !swh1.IsClosed);
419 Console.WriteLine ("#A5:" + !swh1.IsClosed);
420 Console.WriteLine ("#A6:" + !swh1.IsInvalid);
421 Console.WriteLine ("#A7:" + !are1.SafeWaitHandle.IsClosed);
422 Console.WriteLine ("#A8:" +
423 !are1.SafeWaitHandle.IsInvalid);
425 We would return in A4, A5, A6 true, even when we have set the
430 2007-07-18 Miguel de Icaza <miguel@novell.com>
432 * WaitHandle.cs (Handle): in the 2.0 profile, explicitly dispose
433 the old SafeWaitHandle, do not wait for the finalizer to run;
435 Take ownership of the handle; The docs did not say that
436 assigning to this value would lead to a leak, the docs said that
437 in the 1.0 and 1.1 profiles assigning to this property might lead
438 to a leak. My mistake.
442 2007-07-09 Atsushi Enomoto <atsushi@ximian.com>
444 * LockCookie.cs, AsyncFlowControl.cs :
445 added missing operator == and !=.
447 2007-05-22 Jonathan Chambers <joncham@gmail.com>
449 * Thread.cs: Use & to check ThreadState rather than ==.
450 Fixes AlbumSurfer regression.
452 2007-05-09 Jonathan Chambers <joncham@gmail.com>
454 * Thread.cs: Implement ApartmentState related items.
456 2007-05-02 Dick Porter <dick@ximian.com>
458 * ReaderWriterLock.cs: ReaderWriterLock derives from
459 CriticalFinalizerObject in the 2.0 profile
461 2007-05-01 Dick Porter <dick@ximian.com>
464 * AsyncFlowControl.cs:
466 * RegisteredWaitHandle.cs:
468 * ThreadStateException.cs:
471 * WaitOrTimerCallback.cs:
473 * EventWaitHandle.cs:
475 * ThreadAbortException.cs:
477 * ReaderWriterLock.cs:
478 * NativeOverlapped.cs:
484 * SynchronizationLockException.cs:
485 * ManualResetEvent.cs:
487 * IOCompletionCallback.cs:
489 * AbandonedMutexException.cs:
490 * SendOrPostCallback.cs:
491 * ThreadInterruptedException.cs: Update to 2.0 profile
493 Thu Apr 19 16:47:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
495 * ThreadPool.cs: patch from Robert Jordan to implement
496 ThreadPool.SetMaxThreads.
498 2007-04-03 Alp Toker <alp@atoker.com>
500 * Monitor.cs: Class is static in 2.0.
502 2007-03-27 Dick Porter <dick@ximian.com>
504 * Mutex.cs: Throw ApplicationException if ReleaseMutex() fails.
507 Tue Jan 23 17:43:50 CET 2007 Paolo Molaro <lupus@ximian.com>
509 * Thread.cs: mark the GC-tracked field with UIntPtr.
511 2006-12-31 Miguel de Icaza <miguel@novell.com>
513 * ThreadPool.cs: Stub a method.
515 2006-12-11 Miguel de Icaza <miguel@novell.com>
517 * WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
518 patterns instead of using directly the IntPtr Handle.
520 Refactor the code to reuse as much as possible, and follow the new
521 conventions where appropriate.
523 2006-11-07 Robert Jordan <robertj@gmx.net>
525 * WaitHandle.cs: Don't assume Assembly.GetEntryAssembly () !=
526 null. Fixes bug #79859.
528 2006-11-02 Dick Porter <dick@ximian.com>
530 * Thread.cs: Use the new Interrupt and SpinWait icalls.
532 2006-07-04 Atsushi Enomoto <atsushi@ximian.com>
534 * WaitHandle.cs : CheckArray() is also used in WaitAny(), so added
535 extra argument to skip STAThread check.
537 2006-06-30 Duncan Mak <duncan@novell.com>
539 * WaitHandle.cs (CheckArray): Avoid using reflection unless we
542 2006-06-29 Duncan Mak <duncan@novell.com>
544 * WaitHandle.cs (CheckArray): Throw NotSupportedException if the
545 current thread is marked with the STAThreadAttribute. Fixes bug
548 2006-05-05 Sebastien Pouliot <sebastien@ximian.com>
550 * ExecutionContext.cs: Don't capture the compressed stack unless the
551 security manager is active (this wasn't ready to be called in
554 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
556 * Timer.cs : avoid NullReferenceException when it is already disposed.
557 Patch by pawel.sakowski@mind-breeze.com. Fixed bug #78208.
559 2004-04-28 Atsushi Enomoto <atsushi@ximian.com>
561 * SynchronizationContext.cs : use ThreadPool in Post(), as suggested
564 2004-04-04 Atsushi Enomoto <atsushi@ximian.com>
566 * Thread.cs : base class is CriticalFinalizerObject.
567 * ThreadStartException.cs : no public constructors.
569 Wed Mar 29 18:29:55 CEST 2006 Paolo Molaro <lupus@ximian.com>
571 * Thread.cs: update for the runtime changes to culture caching.
573 Wed Mar 15 16:35:49 CET 2006 Paolo Molaro <lupus@ximian.com>
575 * Thread.cs: updates for LocalDataStoreSlot: we use an array as
576 storage for the slots now so that LocalDataStoreSlot objects an be
577 garbage collected if the user doesn't keep a reference to them.
579 2006-02-09 Miguel de Icaza <miguel@novell.com>
581 * Monitor.cs: Patch from Thong Nguyen, Wait (.., Timeout) method
582 should allow a -1 (Timeout.Infinite) to mean indefinite wait (the
583 code already supported this.
585 Removed also a LAMESPEC for missing argument checking in Wait with
588 Fixed the use of exceptions.
590 2005-12-23 Dick Porter <dick@ximian.com>
592 * EventWaitHandle.cs:
593 * Mutex.cs: Implement OpenExisting
595 * NativeEventCalls.cs: Add OpenEvent icall for OpenExisting in
596 2.0. Add a "created" boolean out parameter to CreateEvent icall.
598 * ManualResetEvent.cs:
599 * AutoResetEvent.cs: Update CreateEvent icall signature (now has
600 "created" boolean out parameter.)
602 2005-12-17 Dick Porter <dick@ximian.com>
604 * ThreadStartException.cs:
605 * EventWaitHandle.cs:
607 * AbandonedMutexException.cs: New for 2.0 profile
611 * RegisteredWaitHandle.cs:
615 * ManualResetEvent.cs:
616 * AutoResetEvent.cs: Updated for 2.0 profile
618 2005-11-23 Zoltan Varga <vargaz@gmail.com>
620 * Interlocked.cs: Add T:class constraint to the generic
621 CompareExchange and Exchange methods.
623 2005-11-17 Zoltan Varga <vargaz@gmail.com>
625 * Interlocked.cs: Add generic CompareExchange and Exchange methods.
627 2005-11-17 Sebastien Pouliot <sebastien@ximian.com>
629 * WaitHandleCannotBeOpenedException.cs: New (2.0). Is required to
630 compile the Semaphore tests (in System.dll).
632 2005-10-23 Marek Safar <marek.safar@seznam.cz>
634 * SynchronizationContext.cs: A few simple fixes.
636 2005-10-06 Sebastien Pouliot <sebastien@ximian.com>
638 * Thread.cs: Copy an existing IPrincipal to new threads. Fix bug
641 2005-10-06 Sebastien Pouliot <sebastien@ximian.com>
643 * Thread.cs: Added new attributes, [ReliabilityContract] for
644 destructor and [Obsolete] for [Get|Set]CompressedStack, that were
647 2005-09-11 Zoltan Varga <vargaz@gmail.com>
649 * Thread.cs (MemoryBarrier): Make this an icall.
651 2005-09-10 Zoltan Varga <vargaz@gmail.com>
653 * Thread.cs (Interrupt): Make this throw a NotImplementedException.
655 2005-09-09 Martin Baulig <martin@ximian.com>
657 * Timer.cs (Timer.Runner.Start): Silently catch
658 ObjectDisposedException and return; works around some race
659 condition on thread abort.
661 2005-08-19 Dick Porter <dick@ximian.com>
663 * Thread.cs: Reserve 64 bits for the thread ID.
665 2005-07-19 Martin Baulig <martin@ximian.com>
667 * Timer.cs (Timer.Runner.Start): Fix a race condition which was
668 causing a hang on exit int he debugger: check `!disposed' before
669 `start_event.WaitOne ()' and again after it.
671 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
673 * Thread.cs: check that the culture is valid for formatting
674 (ie, (!neutral || invariant)).
676 2005-06-07 Sebastien Pouliot <sebastien@ximian.com>
678 * Thread.cs: Added _Thread interface (and members) and a few missing
679 attributes (for both 1.1 and 2.0).
681 2005-06-06 Zoltan Varga <vargaz@freemail.hu>
683 * Thread.cs Mutex.cs Monitor.cs: Add some missing 2.0 attributes.
685 2005-05-29 Sebastien Pouliot <sebastien@ximian.com>
687 * Timer.cs: Added new constructor for 2.0 and ComVisible attribute.
688 * Timeout.cs: This is a static class in 2.0 and ComVisible attribute.
690 2005-05-26 Ben Maurer <bmaurer@ximian.com>
692 * Thread.cs: Use a static object for a lock rather than
695 2005-05-26 Sebastien Pouliot <sebastien@ximian.com>
697 * SynchronizationContext.cs: Re-introduced SendOrPost method as it's
698 being used in System.Web.Services.
700 2005-05-26 Sebastien Pouliot <sebastien@ximian.com>
702 * SynchronizationContext.cs: Updated to beta2 API so it doesn't depend
703 on the switcher structure anymore (which will be removed from the
706 2005-05-24 Sebastien Pouliot <sebastien@ximian.com>
708 * Thread.cs: Removed #pragma which aren't supported by CSC 7.x.
710 2005-05-20 Sebastien Pouliot <sebastien@ximian.com>
712 * AsyncFlowControl.cs: Now available, as internal, in NET_1_1. This is
713 required to get some methods from SecurityContext and ExecutionContext
715 * CompressedStack.cs: Now includes the current CompressedStack in a new
717 * ExecutionContext.cs: Includes more methods in NET_1_1 to enable
718 ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
720 * Thread.cs: Made ExecutionContext field accessible from the runtime.
721 Added stack propagation when Thread.Start is called.
722 * ThreadPool.cs: QueueUserWorkItem now does stack propagation (done in
723 the runtime), so I "fixed" UnsafeQueueUserWorkItem not to do so.
725 2005-05-19 Miguel de Icaza <miguel@novell.com>
727 * Thread.cs: REmove warnings.
729 2005-05-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
731 * Thread.cs: first check for null, then set in_currentculture.
733 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
735 * Thread.cs: Moved all checks done inside sync_lock to unmanaged code.
736 Merged Thread_internal and Start_internal into a single icall, which
739 2005-05-11 Sebastien Pouliot <sebastien@ximian.com>
741 * CompressedStack.cs: Allow merging of an existing CompressedStack
742 with the actual stack of the current Thread.
743 * Thread.cs: GetCompressedStack and SetCompressedStack are public
744 before 2.0 but couldn't be seen with mono-api-info because of it's
745 LinkDemand for the ECMA public key. Removed unused CompressedStack
746 private field (now part of the ExecutionContext).
748 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
750 * CompressedStack.cs: GetCompressedStack is public before 2.0 but
751 couldn't be seen with mono-api-info because of it's LinkDemand for
752 the ECMA public key. Stack capture occurs here if none exists on the
755 2005-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
757 * ReaderWriterLock.cs: fix random ApplicationException errors. Tested
758 with the System.Web.Cache stress program. Patch by Eyal Alayuf
759 (Mainsoft). Fixes 74598.
761 2005-04-28 Sebastien Pouliot <sebastien@ximian.com>
763 * Thread.cs: Added property to get the ExecutionContext in 2.0. Fixed
764 GetCompressedStack and made SetCompressedStack available (as internal)
767 2005-04-28 Sebastien Pouliot <sebastien@ximian.com>
769 * AsyncFlowControl.cs: Updated wrt beta2.
770 * ExecutionContext.cs: Updated wrt beta2. Class is now internal in
771 NET_1_1 to allow the compressed stack propagation to other threads.
772 * CompressedStack.cs: Updated wrt beta2. Class is internal in NET_1_1
773 to allow the compressed stack propagation to other threads.
774 * ContextCallback.cs: Updated wrt beta2.
775 * HostExecutionContext.cs: Updated wrt beta2.
776 * HostExecutionContextManager.cs: Updated wrt beta2.
777 * Thread.cs: Added internal property to get the ExecutionContext.
779 2005-04-19 Zoltan Varga <vargaz@freemail.hu>
781 * Thread.cs: Add some unused fields.
783 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
785 * ThreadPool.cs: BindHandle does nothing now.
787 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
789 * Thread.cs: clear the Unstarted bit before calling Start_internal.
792 2005-04-04 Ben Maurer <bmaurer@ximian.com>
794 * Thread.cs: Do argument checking for Current[UI]Culture to make
795 the exception more clear for a null value being set.
797 2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
799 * CompressedStack.cs: Added LinkDemand for UnmanagedCode and ECMA
800 public key on GetCompressedStack method.
801 * Mutex: Added LinkDemand for UnmanagedCode to create named (system
803 * Thread.cs: Added LinkDemand for ECMA public key on [Get|Set]
804 CompressedStack methods.
805 * WaitHandle.cs: Added LinkDemand and InheritanceDemand for
806 UnmanagedCode on set Handle property.
808 2005-03-10 Zoltan Varga <vargaz@freemail.hu>
810 * Thread.cs: Make slothash a ThreadStatic field. Fixes #65414.
812 2005-02-21 Zoltan Varga <vargaz@freemail.hu>
814 * Monitor.cs Interlocked.cs: Add net 2.0 ReliabilityContractAttributes.
816 2005-02-20 Zoltan Varga <vargaz@freemail.hu>
818 * Interlocked.cs: Applied patch from Luca Barbieri (luca.barbieri@gmail.com). Add NET 2.0 methods.
820 Tue Feb 15 18:19:11 CET 2005 Paolo Molaro <lupus@ximian.com>
822 * Thread.cs: make the slothash a field in MonoThread.
824 2005-01-27 Sebastien Pouliot <sebastien@ximian.com>
826 * Overlapped.cs: Added check for ControlPolicy and ControlEvidence for
827 Unsafe pack. Added MonoTODO for missing security stack propagation.
828 * Thread.cs: Add security checks for ControlThread.
829 * ThreadPool.cs: Added declarative security checks.
831 Thu Jan 13 18:15:32 CET 2005 Paolo Molaro <lupus@ximian.com>
833 * Thread.cs: implement stacksize and parameterized
834 start functionality (requires matching runtime).
836 2005-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
838 * ThreadAbortException.cs: added private serialization .ctor.
840 2004-12-20 Sebastien Pouliot <sebastien@ximian.com>
842 * CompressedStack.cs: Implemented most todo so it's usable for CAS.
843 * CompressedStackSwitcher.cs: Implemented most todo.
844 * Thread.cs: Implement support for getting/setting CompressedStack.
846 2004-12-15 Zoltan Varga <vargaz@freemail.hu>
848 * Thread.cs: Change type of culture_info and ui_culture_info to
849 IntPtr. Implement correct culture handling for the UI culture as
852 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
854 * Thread.cs: Optimize CurrentCulture to avoid initializing the
855 serialization infrastructure in the common case when the culture is
858 2004-12-06 Zoltan Varga <vargaz@freemail.hu>
860 * Thread.cs: Add new fields 'serialized_culture_info{_len}'.
862 * Thread.cs (CurrentCulture): Fix leaking of culture info objects
863 across appdomains. Partially fixes #50049.
865 2004-12-05 Miguel de Icaza <miguel@ximian.com>
867 * AutoResetEvent.cs (Set, Reset): If we are disposed, throw a
868 ObjectDisposedEvent, helped track the WebConnection destructor
871 2004-09-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
873 * Timer.cs: don't invoke the callback twice when the timer changes.
876 2004-09-08 Marek Safar <marek.safar@seznam.cz>
878 * Interlocked.cs: Class is static in NET_2_0.
880 2004-09-04 Sebastien Pouliot <sebastien@ximian.com>
882 * Thread.cs: Changed an imperative security demand to declarative
883 (unsupported) so it doesn't (for now) call the security runtime.
885 2004-08-20 Sebastien Pouliot <sebastien@ximian.com>
887 * Thread.cs: Added Fx 2.0 properties/methods/attributes.
889 2004-08-12 Sebastien Pouliot <sebastien@ximian.com>
891 * CompressedStackSwitcher.cs: Added missing [ComVisible] and
892 [ReliabilityContract] attributes.
893 * ExecutionContext.cs: Added missing [ComVisible] and
894 [Serializable] attributes.
895 * HostExecutionContext.cs: Added missing [ComVisible] attribute.
896 * HostExecutionContextManager.cs: Added missing [ComVisible] and
897 [ReliabilityContract] attributes.
898 * HostExecutionContextSwitcher.cs: Added missing Equals and
899 GetHashCode methods and [ComVisible] and [ReliabilityContract] attrs.
900 * ParameterizedThreadStart.cs: New delegate in NET_2_0.
901 * SendOrPostCallback.cs: Added missing [ComVisible] attribute.
902 * SynchronizationContext.cs: Added new (2.0 beta1) methods Copy and
903 WaitHelper. Added missing [ComVisible] and [ReliabilityContract] attrs.
904 * SynchronizationContextSwitcher.cs: Added missing [ComVisible] and
905 [ReliabilityContract] attributes.
907 2004-08-08 Sebastien Pouliot <sebastien@ximian.com>
909 * HostExecutionContext.cs: Fx 2.0 stub required for AppDomain.
910 * HostExecutionContextManager.cs: Fx 2.0 stub required for AppDomain.
911 * HostExecutionContextSwitcher.cs: Fx 2.0 stub required for AppDomain.
913 2004-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
915 * Timer.cs: don't invoke the callback if the period changes before the
916 due time. Fixes bug #62421.
918 2004-07-27 Lluis Sanchez Gual <lluis@novell.com>
920 * ExecutionContext.cs, ExecutionContextSwitcher.cs,
921 SynchronizationContext.cs, SynchronizationContextSwitcher.cs: Added
924 2004-07-15 Dick Porter <dick@ximian.com>
926 * Thread.cs: Hold a lock in GetNamedDataSlot. Fixes bug 61582,
927 based on patch by Sbastien Robitaille
928 (sebastien.robitaille@croesus.com). Also fix instances of
929 lock(typeof(Thread)) to lock a private object instead.
931 2004-07-14 Sebastien Pouliot <sebastien@ximian.com>
933 * AsyncFlowControl.cs: New structure in Fx 2.0 required in
934 System.Security namespace.
935 * CompressedStackSwitcher.cs: New structure in Fx 2.0 required in
936 System.Security namespace.
937 * ContextCallback.cs: New delegate in Fx 2.0 required in
938 System.Security namespace.
939 * CompressedStack.cs: Updated API for NET_2_0 profile.
941 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
943 * SendOrPostCallback.cs: New delegate.
945 2004-06-24 Dick Porter <dick@ximian.com>
947 * Mutex.cs: Implement the createdNew parameter
949 2004-06-15 Gert Driesen <drieseng@users.sourceforge.net>
951 * Thread.cs: changed return type of VolatileRead to UIntPtr
952 * ThreadPool.cs: set return type of SetMinThreads to bool
954 2004-06-15 Lluis Sanchez Gual <lluis@ximian.com>
956 * Thread.cs: Added new fields to keep sync with MonoThread.
957 Removed state changes in Sleep and Join. The state change is now done
958 in the icall. For accessing to internal fields lock with synch_lock
959 instead of this, which can be a source of deadlocks.
961 2004-06-15 Lluis Sanchez Gual <lluis@ximian.com>
963 * Timer.cs: Don't abort the thread if Dispose() is called from the runner
966 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
969 (CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
970 the thread IPrincipal if we get it from the AppDomain.
972 2004-06-09 Gert Driesen <drieseng@users.sourceforge.net>
974 * CompressedStack.cs: Added finalizer to match public API of
977 2004-05-19 Lluis Sanchez Gual <lluis@ximian.com>
979 * Thread.cs: Some fixes in Abort. Implemented Suspend and Resume.
980 Added internal interruption_requested field.
982 2004-05-13 Sebastien Pouliot <sebastien@ximian.com>
984 * CompressedStack.cs: Added an internal constructor so a default one
985 doesn't appear with corcompare.
986 * Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
987 corcompare. Both throw a NotImplementedException.
988 * ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
989 overloads) to please corcompare. All throw a NotImplementedException.
991 2004-05-12 Zoltan Varga <vargaz@freemail.hu>
993 * CompressedStack.cs: New file.
995 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
997 * ThreadPool.cs: Added GetMinThreads and SetMinThreads.
998 * Timer.cs: In Change, return false if the timer has been disposed.
999 In Dispose, notify the WaitHandle.
1001 2004-04-11 Lluis Sanchez Gual <lluis@ximian.com>
1003 * ReaderWriterLock.cs: More fixes: never wait where acquiring a reader lock
1004 if the thread already has the lock. Added readyWaitingReaders variable to
1005 keep track of threads ready to get the reader lock.
1007 2004-04-11 Lluis Sanchez Gual <lluis@ximian.com>
1009 * LockQueue.cs: Moved lockCount change inside the rwlock lock. Removed
1010 lock(this) when entering the rwlock to avoid a deadlock.
1011 * ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
1012 is not empty (even if state==0).
1014 2004-04-09 Zoltan Varga <vargaz@freemail.hu>
1016 * Timer.cs: Call the callback immediately if dueTime is 0. Fixes
1019 2004-04-08 Jackson Harper <jackson@ximian.com>
1021 * ReaderWriterLock.cs: Fix tyop
1023 2004-04-08 Lluis Sanchez Gual <lluis@ximian.com>
1025 * ReaderWriterLock.cs: Changed some methods to private.
1026 * WaitHandle.cs: In Wait methods, release the synchronization context when
1027 exitContext is true.
1029 2004-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1031 * Timer.cs: call Abort on the Runner instance too.
1033 2004-04-07 Jackson Harper <jackson@ximian.com>
1035 * Thread.cs: Use new culture info method for constructing the
1038 2004-04-07 Lluis Sanchez Gual <lluis@ximian.com>
1040 * ReaderWriterLock.cs: When a thread holds a writer lock, a call to
1041 AcquireReaderLock works like a call to AcquireWriterLock.
1043 2004-04-06 Lluis Sanchez Gual <lluis@ximian.com>
1045 * Monitor.cs: In Wait(), release the synchronization context when
1046 exitContext is true.
1048 2004-04-06 Lluis Sanchez Gual <lluis@ximian.com>
1050 * LockCookie.cs: Keep in this class the count of reader or writer locks
1051 for a thread, not only whether it has locks or not.
1052 * LockQueue.cs: Added property for checking if a thread is waiting in
1053 the queue. Wait now returns a boolean that set to false on timeout
1055 * ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
1056 The main change is that now it keeps a reader lock count for each
1057 thread. This is needed since methods like ReleaseLock or
1058 UpgradeToWriterLock need to return a per-thread status in LockCookie.
1059 Also added support for recursive writer-lock requests.
1061 2004-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1063 * ThreadAbortException.cs: use same HResult as MS.
1064 * Timer.cs: abort the running thread when disposing the Timer. This
1065 fixes NullRefs when finishing xsp.
1067 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1069 * NativeOverlapped.cs: added 2 new internal fields.
1070 * Overlapped.cs: implemented, but it's not used.
1072 * ThreadPool.cs: implemented BindHandle.
1074 2004-03-08 Zoltan Varga <vargaz@freemail.hu>
1076 * Timer.cs (Dispose): Applied patch from Jaroslaw Kowalski
1077 (jaak@zd.com.pl). Fix finalization problems during appdomain unload.
1079 2004-02-23 Jackson Harper <jackson@ximian.com>
1081 * LockCookie.cs: Add some fields for restoring locks.
1082 * ReaderWriterLock.cs: Implement
1083 * LockQueue.cs: New File - used for queueing thread locks in
1086 2004-02-19 Jackson Harper <jackson@ximian.com>
1088 * Monitor.cs: Fix spelleng.
1090 2004-02-09 Zoltan Varga <vargaz@freemail.hu>
1092 * Thread.cs: Add fields added to unmanaged MonoThread here as well.
1093 Fixes random errors caused by memory corruption.
1095 2004-02-06 Zoltan Varga <vargaz@freemail.hu>
1097 * Thread.cs: Store the thread name in unmanaged memory, since the
1098 thread object is shared between appdomains.
1100 2004-02-05 Sebastien Pouliot <sebastien@ximian.com>
1102 * Thread.cs: Implemented CurrentPrincipal.
1104 2004-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1106 * Thread.cs: delayed thread creation until Start is called. If we
1107 don't do that and Start() is not called, the thread is leaked. First
1108 step towards fixing bug #53078.
1110 2003-12-02 Dick Porter <dick@ximian.com>
1112 * Thread.cs: Throw InvalidOperationException if Thread.Name is
1115 2003-12-01 Dick Porter <dick@ximian.com>
1117 * Thread.cs: Implement CurrentCulture and CurrentUICulture
1119 2003-11-12 Miguel de Icaza <miguel@ximian.com>
1121 * Thread.cs: Add new VolatileRead/VolatileWrite methods from 1.1
1123 2003-10-23 Lluis Sanchez Gual <lluis@ximian.com>
1125 * Thread.cs: Added ResetDataStoreStatus and RestoreDataStoreStatus
1126 methods. They are used in CrossAppDomainChannel to save and restore
1127 thread's local data when switching between domains.
1129 2003-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1131 * ManualResetEvent.cs: added check for disposed.
1132 * Thread.cs: no need to init this field.
1134 2003-10-01 Zoltan Varga <vargaz@freemail.hu>
1136 * Thread.cs: Add locking to AllocateNamedDataSlot and
1139 Wed Aug 20 12:01:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
1141 * Thread.cs: put all the fields at the start and add
1142 more fields needed by the runtime.
1144 2003-08-14 Lluis Sanchez Gual <lluis@ximian.com>
1146 * Thread.cs: SetData() method: use Hashtable.Contains to check
1147 if a dataslot has been allocated (value could be null).
1149 2003-07-23 Duncan Mak <duncan@ximian.com>
1151 * WaitHandle.cs (CheckDisposed): This method is not in the public
1152 API, mark it as 'internal'.
1154 2003-07-01 Dick Porter <dick@ximian.com>
1156 * Thread.cs: Throw an exception if thread creation failed.
1157 (Better than just blowing up later.)
1159 2003-06-27 Dietmar Maurer <dietmar@ximian.com>
1161 * ThreadPool.cs: use async delegate invoke.
1163 2003-06-25 Dick Porter <dick@ximian.com>
1165 * WaitHandle.cs: Default handle value should be InvalidHandle, not
1168 2003-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1170 * ThreadPool.cs: correctly create a TimeSpan with provided the number of
1173 * WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
1175 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1177 * WaitHandle.cs: checks and exceptions.
1179 2003-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1181 * NativeEventCalls.cs: added CloseEvent_intenal.
1182 * WaitHandle.cs: call CloseEvent_internal when disposing.
1184 2003-05-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1186 * RegisteredWaitHandle.cs: check that the callback is not null before
1189 * ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
1190 #43963). Queue the item before setting the handle. If there's a timeout,
1191 avoid trying to Dequeue, getting the exception et al, just continue the
1194 Mon May 19 09:07:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
1196 * Monitor.cs: removed test_owner, the check is already done in the
1199 Tue May 13 15:34:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1201 * Thread.cs: added missing field used by the runtime and
1202 a new field to support thread-static data.
1204 2003-04-17 Pedro Mart?ez Juli? <yoros@wanadoo.es>
1206 * Timer.cs: Change the position of two lines because they were
1207 before the "if" that ensures the integrity. After this, the first of
1208 that two lines was producing a NullReferenceException.
1210 2003-04-09 Dick Porter <dick@ximian.com>
1212 * Thread.cs: Make sure a reference to the ThreadStart delegate is
1213 held. There's no telling how long it will be before
1214 Thread.Start() is called, and GC might destroy the delegate.
1215 Thread() and Start() need to be rewritten so that the runtime
1216 creates the new thread when Start() is called, which will simplify
1217 the code a great deal.
1219 2003-03-20 Miguel de Icaza <miguel@ximian.com>
1221 * Thread.cs (CurrentCuluture): use the invaraint culture instead
1222 of "" for the current_culture setting.
1224 2003-03-25 Zoltan Varga <vargaz@freemail.hu>
1226 * Thread.cs: Fix visibility of ResetAbort().
1228 2003-03-18 Dick Porter <dick@ximian.com>
1230 * Thread.cs: Keep the thread state updated in all the places that
1231 require it. (Suspend, Resume and Interrupt not handled yet)
1233 2003-03-03 Lluis Sanchez Gual <lluis@ideary.com>
1235 * Thread.cs: Changed implementation of CurrentContext, adapted to the changes
1238 2003-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1240 * Thread.cs: implemented CurrentContext.
1242 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1244 * Thread.cs: made the thread_id for the current thread accesible through
1245 an internal property.
1247 2003-02-17 Dick Porter <dick@ximian.com>
1249 * Thread.cs: Added the Start semaphore field to the class. Update
1250 the thread state after Start() has returned, not before.
1252 2003-02-13 Zoltan Varga <vargaz@freemail.hu>
1254 * Thread.cs (Sleep): Timeout.Infinite is a value argument.
1256 2003-02-11 Dick Porter <dick@ximian.com>
1258 * Monitor.cs: Infinite wait is Infinite, not 0 ms
1260 2003-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1262 * Thread.cs: fixed bug #37759.
1264 2003-02-07 Patrik Torstensson
1266 * Timer.cs: Set the Background thread flag for the timer thread
1268 2003-02-05 Patrik Torstensson
1270 * ThreadPool.cs: Reformated and fixed issue that made all thread exit the pool.
1272 2003-02-04 Lluis Sanchez Gual <lluis@ideary.com>
1274 * ThreadPool.cs: Implemented RegisterWaitForSingleObject methods.
1276 Tue Jan 28 17:55:59 CET 2003 Paolo Molaro <lupus@ximian.com>
1278 * Thread.cs: delay-init datastorehash.
1280 2003-01-10 Patrik Torstensson <totte@race-x-change.com>
1282 * ThreadPool.cs: Temporary removed the usage of monitor thread, implemented a
1283 model more equal to the MS one.
1285 2002-12-10 Dick Porter <dick@ximian.com>
1291 * WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
1292 ms, not Milliseconds.
1294 2002-12-07 Martin Baulig <martin@ximian.com>
1296 * Timer.cs: Make it actually work; now it no longer sets your
1297 application on fire if you use a zero periode and Timer.Change()
1300 2002-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1302 * Timer.cs: implemented more stuff. It works now.
1304 2002-10-25 Zoltan Varga <vargaz@freemail.hu>
1306 * Thread.cs: Implement GetDomain() and GetDomainID().
1308 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1310 * ThreadPool.cs: now the monitor thread is not sleeping and checking if
1311 more worker threads needed. It waits on _DataInQueue. If (and only if)
1312 there's data in the queue it checks if more worker threads needed and
1313 then sleeps 0.5s before waiting for queued data again.
1315 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1317 * ThreadPool.cs: set IsThreadPoolThread before starting the worker.
1319 2002-09-11 Dick Porter <dick@ximian.com>
1322 * ManualResetEvent.cs:
1323 * AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
1326 * WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
1329 2002-09-03 Dick Porter <dick@ximian.com>
1331 * Thread.cs: Added thread ID field
1333 2002-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1335 * WaitHandle.cs: IDisposable fixes.
1337 2002-08-14 Dick Porter <dick@ximian.com>
1339 * Thread.cs: Make CurrentUICulture act the same as CurrentCulture
1342 2002-08-12 Dietmar Maurer <dietmar@ximian.com>
1344 * ThreadAbortException.cs: impl. ExceptionState property.
1346 * Thread.cs: moved all instance variables to the start of the
1347 class. added support for Thread::Abort()
1349 2002-04-30 Dick Porter <dick@ximian.com>
1351 * Thread.cs: If LocalDataStoreSlot already has data set, remove it
1352 before adding a new one.
1354 Use the Thread object destructor to tell the runtime to close the
1357 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
1359 * Interlocked.cs: made all methods icalls.
1361 2002-04-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1363 * IOCompletionCallback.cs: added attributes to the delegate
1364 (CLSCompliant(false) and Serializable).
1366 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
1367 * Thread.cs: Fixed IsThreadPoolThread to use a internal property instead of extending
1368 the threadstate enum.
1369 * ThreadPool.cs: Now using the internal Isthreadpoolthread property
1370 * ThreadState.cs: removed non-standard enum (ThreadPoolThread)
1372 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
1374 * ThreadState.cs: Added enum for threadpool thread
1375 * Thread.cs: changed the set/clr_state to be internal (used from threadpool)
1376 * Thread.cs: Added IsThreadPoolThread
1377 * ThreadPool.cs: Implementation of QueueUserWorkItem
1379 Wed Feb 13 21:51:30 CET 2002 Paolo Molaro <lupus@ximian.com>
1381 * Thread.cs: implement CurrentCulture property needed by
1382 Convert.ChangeType() (used when compiling enums).
1384 2002-01-23 Dick Porter <dick@ximian.com>
1386 * ManualResetEvent.cs:
1387 * AutoResetEvent.cs: Fixed DOS line endings
1389 2002-01-22 Veronica De Santis <veron78@interfree.it>
1391 * NativeEventCalls : Class that contains internal calls shared by Auto
1392 and Manual Reset Events
1393 * AutoResetEvents.cs : Added class AutoResetEvents and its implementation
1394 * ManualResetEvents.cs : Added class ManualResetEvents and its implementation
1396 2002-01-16 Veronica De Santis <veron78@interfree.it>
1398 * WaitHandle.cs : Renamed handle to os_handle and make it protected
1400 * Mutex.cs : Write the System.Threading.Mutex methods ( constructors
1401 and the ReleaseMutex)
1403 2002-01-15 Dick Porter <dick@ximian.com>
1406 * Thread.cs: Make the runtime's idea of infinite timeouts coincide
1407 with the class library's
1409 2002-01-10 Dick Porter <dick@ximian.com>
1411 * WaitHandle.cs: Added checks for too many handles and null
1412 handles in WaitAll() and WaitAny
1415 2002-01-05 Ravi Pratap <ravi@ximian.com>
1417 * AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
1420 * Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
1421 Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.
1423 2001-12-11 Dick Porter <dick@ximian.com>
1425 * WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
1428 2001-11-26 Dick Porter <dick@ximian.com>
1430 * Thread.cs: DataSlot uses a single system TLS slot, and a
1431 hashtable per thread. Some minor changes to reflect the new
1432 internal calls using the new IO library, and the newly-supported
1433 bool returns from internal calls.
1435 * Monitor.cs: Use bool returns from internal calls now they are
1436 supported by the runtime. Coalesce enter with the try_enter
1439 Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <lupus@ximian.com>
1441 * Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.
1443 2001-10-03 Dick Porter <dick@ximian.com>
1445 * Monitor.cs: Implemented all methods except the two Wait()
1446 methods that take boolean parameters
1448 2001-09-28 Dick Porter <dick@ximian.com>
1450 * Thread.cs: Implemented AllocateDataSlot(),
1451 AllocateNamedDataSlot(), FreeNamedDataSlot(), GetData(),
1452 GetNamedDataSlot(), SetData(), IsBackground. Reworked Thread()
1453 and Start() to avoid a race condition. Added thread-safe state
1454 changing private operations.
1456 * Monitor.cs: Comment out the GetType() calls because it isn't implemented yet
1458 2001-09-25 Dick Porter <dick@ximian.com>
1460 * Thread.cs: Implement Join and timed Join, set correct state
1461 around Start, Join and Sleep calls, implement IsAlive and
1462 ThreadState properties.
1464 * ThreadState.cs (Threading): Added StopRequested,
1465 SuspendRequested, Suspended values
1467 2001-09-23 Dick Porter <dick@ximian.com>
1469 * Thread.cs: Implemented CurrentThread and Sleep (both versions)
1470 with internal calls, and Name.
1472 2001-09-21 Dick Porter <dick@ximian.com>
1474 * Thread.cs: Implement Thread(ThreadStart) constructor and Start()
1475 with an internal call
1477 * WaitHandle.cs: Close calls Dispose(false)
1479 2001-09-13 Dick Porter <dick@ximian.com>
1481 * ApartmentState.cs (Threading): Set the correct enum values
1483 2001-09-13 Dick Porter <dick@ximian.com>
1485 * ApartmentState.cs, AutoResetEvent.cs, IOCompletionCallback.cs,
1486 Interlocked.cs, LockCookie.cs, ManualResetEvent.cs, Monitor.cs,
1487 Mutex.cs, NativeOverlapped.cs, Overlapped.cs, ReaderWriterLock.cs,
1488 RegisteredWaitHandle.cs, SynchronizationLockException.cs,
1489 Thread.cs, ThreadAbortException.cs, ThreadInterruptedException.cs,
1490 ThreadPool.cs, ThreadStart.cs, ThreadStateException.cs,
1491 Timeout.cs, Timer.cs, TimerCallback.cs, WaitCallback.cs,
1492 WaitHandle.cs, WaitOrTimerCallback.cs: System.Threading class
1495 2001-07-18 Michael Lambert <michaellambert@email.com>
1497 * ThreadPriority.cs, ThreadState.cs: Add.