1 2009-10-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
3 * Timer.cs: looks like any negative value is treated as Infinite.
5 2009-10-07 Sebastien Pouliot <sebastien@ximian.com>
7 * Thread.cs: Remove LocalDataStoreSlot-related methods from
10 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
12 * Thread.cs: StartSafe: ignore ThreadAbortExceptions.
14 2009-09-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
16 * Timer.cs: account for the time spent sending jobs to the queue.
18 2009-09-26 Mark Probst <mark.probst@gmail.com>
20 * Thread.cs: Serialize the principal so as not to make it cross
21 appdomains. Two new internal calls for copying byte arrays
24 2009-09-25 Mark Probst <mark.probst@gmail.com>
26 * Thread.cs: The Thread class is split up into Thread and
27 InternalThread now. We have exactly one InternalThread per
28 thread, and at most one Thread per appdomain per thread. Most
29 data is stored in InternalThread. All InternalThread objects live
32 * Environment.cs: Corlib version bump.
34 2009-09-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
36 * Timer.cs: no need to wake up the scheduler when removing the next
39 2009-09-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
41 * Timer.cs: rewritten. It only has one queue now and it is sorted by
42 due time. Before this changes, it was using a lot of CPU when there
43 were a lot of 'future' timers.
45 2009-09-23 Sebastien Pouliot <sebastien@ximian.com>
47 * ExecutionContext.cs: Don't use SecurityContext and don't expose
48 AsyncFlowControl for NET_2_1
49 * ThreadAbortException.cs: Remove ExceptionState from NET_2_1
50 * Thread.cs: Don't expose ApartmentState and remove Suspend and
51 Resume methods for NET_2_1
52 * ThreadPool.cs: Remove GetAvailableThreads and Unsafe* methods
55 2009-09-22 Jb Evain <jbevain@novell.com>
57 * Timer.cs: MONOTOUCH doesn't support remoting, so do not pass
58 true to exitContext when calling WaitOne on a WaitHandle.
60 2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
62 * Thread.cs: Remove [Get|Set]CompressedStack for NET_2_1
64 2009-09-21 Sebastien Pouliot <sebastien@ximian.com>
66 * Thread.cs: Remove CurrentPrincipal property for NET_2_1
67 * ExecutionContext.cs: Remove Run method for NET_2_1
69 2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
71 * EventWaitHandle.cs: Remove AccessControl usage for NET_2_1
72 * Mutex.cs: Remove some ctors and AccessControl usage for NET_2_1
73 * NativeEventCalls.cs: Remove AccessControl usage for NET_2_1
75 2009-08-19 Jérémie Laval <jeremie.laval@gmail.com>
77 * ParallelLoopState.cs: Take in account that
78 AtomicBoolean is a class.
80 2009-08-19 Jérémie Laval <jeremie.laval@gmail.com>
82 * AtomicBoolean.cs: Turn it into a class
83 * CountdownEvent.cs: Work on cached variable. Make sure
84 count doesn't go under 0.
86 2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
91 * CancellationToken.cs:
92 * ICancelableOperation.cs:
93 * CancellationTokenSource.cs:
94 * CancellationTokenRegistration.cs: Add BOOTSTRAP_NET_4_0.
96 2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
98 * Parallel.cs: Disable While method.
99 * CountdownEvent.cs: Fix method signature.
100 * Barrier.cs: Moved type.
101 * AggregateException.cs: Moved type.
103 2009-08-04 Jérémie Laval <jeremie.laval@gmail.com>
105 * SpinLock: Remove unused private methods.
107 2009-08-03 Zoltan Varga <vargaz@gmail.com>
109 * Thread.cs: Always call Thread_free_internal from the finalizer, since
110 it frees other things besides the handle. Fixes #527576.
112 2009-07-31 Jérémie Laval <jeremie.laval@gmail.com>
121 * ManualResetEventSlim.cs
122 * CancellationTokenSource.cs: Various 4.0 b1 API mismatch fixes.
124 2009-07-30 Jérémie Laval <jeremie.laval@gmail.com>
126 * AggregateException.cs:
130 * CancellationToken.cs:
131 * CancellationTokenRegistration.cs:
132 * CancellationTokenSource.cs:
134 * ICancelableOperation.cs:
135 * LazyInitializer.cs:
136 * ManualResetEventSlim.cs:
138 * ParallelLoopResult.cs:
139 * ParallelLoopState.cs:
140 * ParallelOptions.cs:
146 * Watch.cs: Add ParallelFx files for System.Threading namespace
148 2009-07-21 Jb Evain <jbevain@novell.com>
150 * ThreadPool.cs: avoid an unecessary method call when not running
153 2009-07-20 Jb Evain <jbevain@novell.com>
155 * Thread.cs: use the moonlight specific thread start
156 hack for the net_2_1 profile exclusively.
158 2009-06-25 Miguel de Icaza <miguel@novell.com>
160 * Timer.cs: Throw ArgumentNullException if the callback is null.
162 2009-06-22 Bill Holmes <billholmes54@gmail.com>
164 * Thread.cs : Adding interrupt_on_stop field.
166 Contributed under MIT/X11 license.
168 2009-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
170 * Thread.cs: MoonlightUnhandledException: ensure there's no way to
171 reach native code with a managed exception.
173 2009-06-10 Sebastien Pouliot <sebastien@ximian.com>
175 * Thread.cs: Refactor calling Moonlight's OnUnhandledException to
176 make sur the delegate it not called from a [SecuritySafeCritical]
178 * ThreadPool.cs: Reuse the above code for QueueUserWorkItem.
179 Original patch from Alan McGovern
181 2009-06-10 Marek Safar <marek.safar@gmail.com>
183 * LockRecursionException.cs: New file.
185 2009-04-21 Mark Probst <mark.probst@gmail.com>
187 * Thread.cs: Make the execution context field thread-static to
188 avoid it being shared between app domains.
190 2009-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
192 * Thread.cs: For 2.1 ensure exceptions in threads are handled using the
193 UnhandledException event mechanism in System.Windows.Application instead
194 of crashing the application.
196 2009-04-18 Mark Probst <mark.probst@gmail.com>
198 * Thread.cs: Don't keep the current number formatter here because
199 it's shared between app domains.
201 2009-04-18 Mark Probst <mark.probst@gmail.com>
203 * Thread.cs: Make the abort exception state a GC handle, to
204 properly separate AppDomains. Add internal method for getting the
207 * ThreadAbortException.cs: Get the abort exception state via the
210 2009-04-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
212 * WaitHandle.cs: implemented 2 missing WaitAny overloads.
214 2009-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
216 * WaitHandle.cs: Added missing WaitOne overload.
218 2009-02-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
220 * WaitHandle.cs: implemented SignalAndWait.
222 2009-02-18 Jb Evain <jbevain@novell.com>
224 * SynchronizationContext.cs: add NET_2_1 SetThreadStaticContext
225 method, even if already obsolete.
227 2009-01-30 Andreia Gaita <avidigal@novell.com>
229 * SynchronizationContext.cs: Remove moonlight hacks, dispatcher should
230 be able to handle this now.
232 2008-12-20 Miguel de Icaza <miguel@novell.com>
234 * WaitHandle.cs: Add two overloads that were introduced in 3.5.
236 2008-11-25 Geoff Norton <gnorton@novell.com>
238 * SynchronizationContext.cs: A temporary horrible hack to SyncContext
239 to hard-wire all calls back to the main thread (moonlight-only) so that
240 we can use our unit test harness. This will be fixed for 2.1 when we
241 implement Dispatcher properly.
243 2008-10-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
245 * Interlocked.cs: make CompareExchange internal in 1.1 for use by the
248 2008-09-19 Miguel de Icaza <miguel@novell.com>
250 * WaitHandle.cs (WaitOne): Add new 3.5 SP1 overload.
252 Tue Sep 16 21:02:59 CEST 2008 Paolo Molaro <lupus@ximian.com>
254 * Thread.cs: fixed SpinWait() implementation (bug #423582).
256 Tue Sep 9 15:19:48 CEST 2008 Paolo Molaro <lupus@ximian.com>
258 * Timer.cs: use a separate queue for timers that are far in the future
259 so they don't need to be looked at as often (bug #418272).
260 Better precision of recheduling time.
262 2008-07-03 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
267 * ExecutionContext.cs:
268 * AsyncFlowControl.cs:
269 * AbandonedMutexException.cs: Fix parameter names
271 2008-07-02 Zoltan Varga <vargaz@gmail.com>
273 * Timer.cs (SchedulerThread): Iterate through the keys of the hashtable instead
276 2008-06-18 Kornél Pál <kornelpal@gmail.com>
278 * Thread.cs: Implement BeginThreadAffinity and EndThreadAffinity as no-op
279 because managed and native threads are currently bound together.
281 2008-06-14 Zoltan Varga <vargaz@gmail.com>
283 * Thread.cs: Sync layout with unmanaged side.
285 2008-06-07 Zoltan Varga <vargaz@gmail.com>
287 * Monitor.cs: Implement Enter/Exit directly as icalls without managed wrapper
290 2008-04-11 Zoltan Varga <vargaz@gmail.com>
292 * Thread.cs: Make in_currentculture non-static. Fixes #378892.
294 2008-04-07 Dick Porter <dick@ximian.com>
296 * Thread.cs: Fix throwing of exceptions when manipulating
297 ApartmentState. Fixes part of bug 324338.
299 2008-04-01: Eyal Alaluf <eyala@mainsoft.com>
301 * Thread.cs: Put a NumberFormatter instance as a member of the current
302 thread so it can reused for performint ToString conversions.
304 2008-03-26 Massimiliano Mantione <massi@ximian.com>
305 * Thread.cs: Renamed "unused6" because it will be used to hold
306 the "mono_thread_manage" callback.
308 Tue Feb 26 17:51:58 CET 2008 Paolo Molaro <lupus@ximian.com>
310 * Timer.cs: use a monotonic clock to schedule timers
311 (fixes part of bug#347476).
313 Fri Feb 22 11:23:53 CET 2008 Paolo Molaro <lupus@ximian.com>
315 * Thread.cs: implemented Begin/EndCriticalRegion.
317 2008-02-03 Sebastien Pouliot <sebastien@ximian.com>
319 * WaitHandle.cs: Ifdef out some unused code (found by Gendarme).
321 2008-01-06 Zoltan Varga <vargaz@gmail.com>
323 * Thread.cs (set_CurrentCulture): If the culture is read-only, cache the result
325 (set_CurrentUICulture): Ditto.
327 2008-01-03 Zoltan Varga <vargaz@gmail.com>
329 * Thread.cs (set_CurrentCulture): Avoid the serialization overhead if
330 the new culture is equal to the old one.
332 2007-12-27 Zoltan Varga <vargaz@gmail.com>
334 * Thread.cs: Change the type of synch_cs to an IntPtr to be in synch with the
335 unmanaged definition.
337 2007-11-20 Atsushi Enomoto <atsushi@ximian.com>
339 * ReaderWriterLock.cs : ... and avoid extra finalizer call.
341 2007-11-20 Atsushi Enomoto <atsushi@ximian.com>
343 * ReaderWriterLock.cs : adding missing 2.0 destructor (does nothing).
345 Thu Nov 8 18:36:25 CET 2007 Paolo Molaro <lupus@ximian.com>
347 * Timer.cs: if period is 0 with a non-infinite due time, we
348 run the callback just once (bug #340212).
350 2007-10-24 Dick Porter <dick@ximian.com>
352 * Thread.cs: Call Thread_init on the new 2.0 constructors too.
354 2007-10-24 Dick Porter <dick@ximian.com>
356 * Thread.cs: Assign the ManagedThreadId when it is asked for,
357 rather than in the constructor, so ThreadPool threads also work.
358 Fixes bug 335579 (and doesn't break 325367 or 325566)
360 2007-10-24 Atsushi Enomoto <atsushi@ximian.com>
362 * SynchronizationContext.cs : removed SendOrPost().
364 Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
366 * Timer.cs: better cleanup test for the expired array.
368 Tue Oct 16 17:22:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
370 * Timer.cs: remove expired timers from the the jobs list.
372 Tue Oct 16 12:14:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
374 * Timer.cs: rewrote to use threadpool threads to invoke the callbacks,
375 avoid Thread.Abort and Thread.Interrupt and use a single scheduler
376 thread, partially from the patch of Rafael Ferreira in bug #315999.
377 Fixes bug #315999, #332206.
379 2007-10-15 Dick Porter <dick@ximian.com>
381 * Thread.cs: Initialise synch_cs to null now we aren't using it as
384 2007-09-25 Dick Porter <dick@ximian.com>
386 * Thread.cs: Keep ManagedThreadId constant over the lifetime of a
387 Thread. Patch from jlarimer@gmail.com fixing bugs 325367 and
390 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
392 * SynchronizationContext.cs: Implement SetSynchronizationContext.
394 2007-09-06 Dick Porter <dick@ximian.com>
396 * Timer.cs: Only hold a WeakReference to the runner thread, to
397 work around an issue when finalizing at shutdown or (I think)
398 appdomain unload. (Basically, the Thread was being finalized
399 first, but the Timer's finalizer was still trying to reference it
402 2007-08-10 Gert Driesen <drieseng@users.sourceforge.net>
404 * Thread.cs: Throw ThreadStateException when retrieving ApartmentState
405 or IsBackground if thread is stopped. Fixes bug #81658.
407 2007-08-08 Zoltan Varga <vargaz@gmail.com>
409 * Thread.cs: Add a fixme.
411 2007-07-21 Miguel de Icaza <miguel@novell.com>
413 * WaitHandle.cs (Handle): It turns out that we should never create
414 new SafeWaitHandles, as applications will assume that a
415 SafeWaitHandle pulled from this will be the same after a Handle
416 update (from Gert's test):
419 AutoResetEvent are1 = new AutoResetEvent (false);
420 AutoResetEvent are2 = new AutoResetEvent (false);
421 SafeWaitHandle swh1 = are1.SafeWaitHandle;
422 Console.WriteLine ("#A1:" + !swh1.IsClosed);
423 Console.WriteLine ("#A2:" + !swh1.IsInvalid);
424 IntPtr dummyHandle = (IntPtr) 2;
425 are1.Handle = dummyHandle;
426 Console.WriteLine ("#A3:" + (are1.Handle == dummyHandle));
427 Console.WriteLine ("#A4:" + !swh1.IsClosed);
428 Console.WriteLine ("#A5:" + !swh1.IsClosed);
429 Console.WriteLine ("#A6:" + !swh1.IsInvalid);
430 Console.WriteLine ("#A7:" + !are1.SafeWaitHandle.IsClosed);
431 Console.WriteLine ("#A8:" +
432 !are1.SafeWaitHandle.IsInvalid);
434 We would return in A4, A5, A6 true, even when we have set the
439 2007-07-18 Miguel de Icaza <miguel@novell.com>
441 * WaitHandle.cs (Handle): in the 2.0 profile, explicitly dispose
442 the old SafeWaitHandle, do not wait for the finalizer to run;
444 Take ownership of the handle; The docs did not say that
445 assigning to this value would lead to a leak, the docs said that
446 in the 1.0 and 1.1 profiles assigning to this property might lead
447 to a leak. My mistake.
451 2007-07-09 Atsushi Enomoto <atsushi@ximian.com>
453 * LockCookie.cs, AsyncFlowControl.cs :
454 added missing operator == and !=.
456 2007-05-22 Jonathan Chambers <joncham@gmail.com>
458 * Thread.cs: Use & to check ThreadState rather than ==.
459 Fixes AlbumSurfer regression.
461 2007-05-09 Jonathan Chambers <joncham@gmail.com>
463 * Thread.cs: Implement ApartmentState related items.
465 2007-05-02 Dick Porter <dick@ximian.com>
467 * ReaderWriterLock.cs: ReaderWriterLock derives from
468 CriticalFinalizerObject in the 2.0 profile
470 2007-05-01 Dick Porter <dick@ximian.com>
473 * AsyncFlowControl.cs:
475 * RegisteredWaitHandle.cs:
477 * ThreadStateException.cs:
480 * WaitOrTimerCallback.cs:
482 * EventWaitHandle.cs:
484 * ThreadAbortException.cs:
486 * ReaderWriterLock.cs:
487 * NativeOverlapped.cs:
493 * SynchronizationLockException.cs:
494 * ManualResetEvent.cs:
496 * IOCompletionCallback.cs:
498 * AbandonedMutexException.cs:
499 * SendOrPostCallback.cs:
500 * ThreadInterruptedException.cs: Update to 2.0 profile
502 Thu Apr 19 16:47:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
504 * ThreadPool.cs: patch from Robert Jordan to implement
505 ThreadPool.SetMaxThreads.
507 2007-04-03 Alp Toker <alp@atoker.com>
509 * Monitor.cs: Class is static in 2.0.
511 2007-03-27 Dick Porter <dick@ximian.com>
513 * Mutex.cs: Throw ApplicationException if ReleaseMutex() fails.
516 Tue Jan 23 17:43:50 CET 2007 Paolo Molaro <lupus@ximian.com>
518 * Thread.cs: mark the GC-tracked field with UIntPtr.
520 2006-12-31 Miguel de Icaza <miguel@novell.com>
522 * ThreadPool.cs: Stub a method.
524 2006-12-11 Miguel de Icaza <miguel@novell.com>
526 * WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
527 patterns instead of using directly the IntPtr Handle.
529 Refactor the code to reuse as much as possible, and follow the new
530 conventions where appropriate.
532 2006-11-07 Robert Jordan <robertj@gmx.net>
534 * WaitHandle.cs: Don't assume Assembly.GetEntryAssembly () !=
535 null. Fixes bug #79859.
537 2006-11-02 Dick Porter <dick@ximian.com>
539 * Thread.cs: Use the new Interrupt and SpinWait icalls.
541 2006-07-04 Atsushi Enomoto <atsushi@ximian.com>
543 * WaitHandle.cs : CheckArray() is also used in WaitAny(), so added
544 extra argument to skip STAThread check.
546 2006-06-30 Duncan Mak <duncan@novell.com>
548 * WaitHandle.cs (CheckArray): Avoid using reflection unless we
551 2006-06-29 Duncan Mak <duncan@novell.com>
553 * WaitHandle.cs (CheckArray): Throw NotSupportedException if the
554 current thread is marked with the STAThreadAttribute. Fixes bug
557 2006-05-05 Sebastien Pouliot <sebastien@ximian.com>
559 * ExecutionContext.cs: Don't capture the compressed stack unless the
560 security manager is active (this wasn't ready to be called in
563 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
565 * Timer.cs : avoid NullReferenceException when it is already disposed.
566 Patch by pawel.sakowski@mind-breeze.com. Fixed bug #78208.
568 2004-04-28 Atsushi Enomoto <atsushi@ximian.com>
570 * SynchronizationContext.cs : use ThreadPool in Post(), as suggested
573 2004-04-04 Atsushi Enomoto <atsushi@ximian.com>
575 * Thread.cs : base class is CriticalFinalizerObject.
576 * ThreadStartException.cs : no public constructors.
578 Wed Mar 29 18:29:55 CEST 2006 Paolo Molaro <lupus@ximian.com>
580 * Thread.cs: update for the runtime changes to culture caching.
582 Wed Mar 15 16:35:49 CET 2006 Paolo Molaro <lupus@ximian.com>
584 * Thread.cs: updates for LocalDataStoreSlot: we use an array as
585 storage for the slots now so that LocalDataStoreSlot objects an be
586 garbage collected if the user doesn't keep a reference to them.
588 2006-02-09 Miguel de Icaza <miguel@novell.com>
590 * Monitor.cs: Patch from Thong Nguyen, Wait (.., Timeout) method
591 should allow a -1 (Timeout.Infinite) to mean indefinite wait (the
592 code already supported this.
594 Removed also a LAMESPEC for missing argument checking in Wait with
597 Fixed the use of exceptions.
599 2005-12-23 Dick Porter <dick@ximian.com>
601 * EventWaitHandle.cs:
602 * Mutex.cs: Implement OpenExisting
604 * NativeEventCalls.cs: Add OpenEvent icall for OpenExisting in
605 2.0. Add a "created" boolean out parameter to CreateEvent icall.
607 * ManualResetEvent.cs:
608 * AutoResetEvent.cs: Update CreateEvent icall signature (now has
609 "created" boolean out parameter.)
611 2005-12-17 Dick Porter <dick@ximian.com>
613 * ThreadStartException.cs:
614 * EventWaitHandle.cs:
616 * AbandonedMutexException.cs: New for 2.0 profile
620 * RegisteredWaitHandle.cs:
624 * ManualResetEvent.cs:
625 * AutoResetEvent.cs: Updated for 2.0 profile
627 2005-11-23 Zoltan Varga <vargaz@gmail.com>
629 * Interlocked.cs: Add T:class constraint to the generic
630 CompareExchange and Exchange methods.
632 2005-11-17 Zoltan Varga <vargaz@gmail.com>
634 * Interlocked.cs: Add generic CompareExchange and Exchange methods.
636 2005-11-17 Sebastien Pouliot <sebastien@ximian.com>
638 * WaitHandleCannotBeOpenedException.cs: New (2.0). Is required to
639 compile the Semaphore tests (in System.dll).
641 2005-10-23 Marek Safar <marek.safar@seznam.cz>
643 * SynchronizationContext.cs: A few simple fixes.
645 2005-10-06 Sebastien Pouliot <sebastien@ximian.com>
647 * Thread.cs: Copy an existing IPrincipal to new threads. Fix bug
650 2005-10-06 Sebastien Pouliot <sebastien@ximian.com>
652 * Thread.cs: Added new attributes, [ReliabilityContract] for
653 destructor and [Obsolete] for [Get|Set]CompressedStack, that were
656 2005-09-11 Zoltan Varga <vargaz@gmail.com>
658 * Thread.cs (MemoryBarrier): Make this an icall.
660 2005-09-10 Zoltan Varga <vargaz@gmail.com>
662 * Thread.cs (Interrupt): Make this throw a NotImplementedException.
664 2005-09-09 Martin Baulig <martin@ximian.com>
666 * Timer.cs (Timer.Runner.Start): Silently catch
667 ObjectDisposedException and return; works around some race
668 condition on thread abort.
670 2005-08-19 Dick Porter <dick@ximian.com>
672 * Thread.cs: Reserve 64 bits for the thread ID.
674 2005-07-19 Martin Baulig <martin@ximian.com>
676 * Timer.cs (Timer.Runner.Start): Fix a race condition which was
677 causing a hang on exit int he debugger: check `!disposed' before
678 `start_event.WaitOne ()' and again after it.
680 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
682 * Thread.cs: check that the culture is valid for formatting
683 (ie, (!neutral || invariant)).
685 2005-06-07 Sebastien Pouliot <sebastien@ximian.com>
687 * Thread.cs: Added _Thread interface (and members) and a few missing
688 attributes (for both 1.1 and 2.0).
690 2005-06-06 Zoltan Varga <vargaz@freemail.hu>
692 * Thread.cs Mutex.cs Monitor.cs: Add some missing 2.0 attributes.
694 2005-05-29 Sebastien Pouliot <sebastien@ximian.com>
696 * Timer.cs: Added new constructor for 2.0 and ComVisible attribute.
697 * Timeout.cs: This is a static class in 2.0 and ComVisible attribute.
699 2005-05-26 Ben Maurer <bmaurer@ximian.com>
701 * Thread.cs: Use a static object for a lock rather than
704 2005-05-26 Sebastien Pouliot <sebastien@ximian.com>
706 * SynchronizationContext.cs: Re-introduced SendOrPost method as it's
707 being used in System.Web.Services.
709 2005-05-26 Sebastien Pouliot <sebastien@ximian.com>
711 * SynchronizationContext.cs: Updated to beta2 API so it doesn't depend
712 on the switcher structure anymore (which will be removed from the
715 2005-05-24 Sebastien Pouliot <sebastien@ximian.com>
717 * Thread.cs: Removed #pragma which aren't supported by CSC 7.x.
719 2005-05-20 Sebastien Pouliot <sebastien@ximian.com>
721 * AsyncFlowControl.cs: Now available, as internal, in NET_1_1. This is
722 required to get some methods from SecurityContext and ExecutionContext
724 * CompressedStack.cs: Now includes the current CompressedStack in a new
726 * ExecutionContext.cs: Includes more methods in NET_1_1 to enable
727 ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
729 * Thread.cs: Made ExecutionContext field accessible from the runtime.
730 Added stack propagation when Thread.Start is called.
731 * ThreadPool.cs: QueueUserWorkItem now does stack propagation (done in
732 the runtime), so I "fixed" UnsafeQueueUserWorkItem not to do so.
734 2005-05-19 Miguel de Icaza <miguel@novell.com>
736 * Thread.cs: REmove warnings.
738 2005-05-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
740 * Thread.cs: first check for null, then set in_currentculture.
742 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
744 * Thread.cs: Moved all checks done inside sync_lock to unmanaged code.
745 Merged Thread_internal and Start_internal into a single icall, which
748 2005-05-11 Sebastien Pouliot <sebastien@ximian.com>
750 * CompressedStack.cs: Allow merging of an existing CompressedStack
751 with the actual stack of the current Thread.
752 * Thread.cs: GetCompressedStack and SetCompressedStack are public
753 before 2.0 but couldn't be seen with mono-api-info because of it's
754 LinkDemand for the ECMA public key. Removed unused CompressedStack
755 private field (now part of the ExecutionContext).
757 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
759 * CompressedStack.cs: GetCompressedStack is public before 2.0 but
760 couldn't be seen with mono-api-info because of it's LinkDemand for
761 the ECMA public key. Stack capture occurs here if none exists on the
764 2005-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
766 * ReaderWriterLock.cs: fix random ApplicationException errors. Tested
767 with the System.Web.Cache stress program. Patch by Eyal Alayuf
768 (Mainsoft). Fixes 74598.
770 2005-04-28 Sebastien Pouliot <sebastien@ximian.com>
772 * Thread.cs: Added property to get the ExecutionContext in 2.0. Fixed
773 GetCompressedStack and made SetCompressedStack available (as internal)
776 2005-04-28 Sebastien Pouliot <sebastien@ximian.com>
778 * AsyncFlowControl.cs: Updated wrt beta2.
779 * ExecutionContext.cs: Updated wrt beta2. Class is now internal in
780 NET_1_1 to allow the compressed stack propagation to other threads.
781 * CompressedStack.cs: Updated wrt beta2. Class is internal in NET_1_1
782 to allow the compressed stack propagation to other threads.
783 * ContextCallback.cs: Updated wrt beta2.
784 * HostExecutionContext.cs: Updated wrt beta2.
785 * HostExecutionContextManager.cs: Updated wrt beta2.
786 * Thread.cs: Added internal property to get the ExecutionContext.
788 2005-04-19 Zoltan Varga <vargaz@freemail.hu>
790 * Thread.cs: Add some unused fields.
792 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
794 * ThreadPool.cs: BindHandle does nothing now.
796 2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
798 * Thread.cs: clear the Unstarted bit before calling Start_internal.
801 2005-04-04 Ben Maurer <bmaurer@ximian.com>
803 * Thread.cs: Do argument checking for Current[UI]Culture to make
804 the exception more clear for a null value being set.
806 2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
808 * CompressedStack.cs: Added LinkDemand for UnmanagedCode and ECMA
809 public key on GetCompressedStack method.
810 * Mutex: Added LinkDemand for UnmanagedCode to create named (system
812 * Thread.cs: Added LinkDemand for ECMA public key on [Get|Set]
813 CompressedStack methods.
814 * WaitHandle.cs: Added LinkDemand and InheritanceDemand for
815 UnmanagedCode on set Handle property.
817 2005-03-10 Zoltan Varga <vargaz@freemail.hu>
819 * Thread.cs: Make slothash a ThreadStatic field. Fixes #65414.
821 2005-02-21 Zoltan Varga <vargaz@freemail.hu>
823 * Monitor.cs Interlocked.cs: Add net 2.0 ReliabilityContractAttributes.
825 2005-02-20 Zoltan Varga <vargaz@freemail.hu>
827 * Interlocked.cs: Applied patch from Luca Barbieri (luca.barbieri@gmail.com). Add NET 2.0 methods.
829 Tue Feb 15 18:19:11 CET 2005 Paolo Molaro <lupus@ximian.com>
831 * Thread.cs: make the slothash a field in MonoThread.
833 2005-01-27 Sebastien Pouliot <sebastien@ximian.com>
835 * Overlapped.cs: Added check for ControlPolicy and ControlEvidence for
836 Unsafe pack. Added MonoTODO for missing security stack propagation.
837 * Thread.cs: Add security checks for ControlThread.
838 * ThreadPool.cs: Added declarative security checks.
840 Thu Jan 13 18:15:32 CET 2005 Paolo Molaro <lupus@ximian.com>
842 * Thread.cs: implement stacksize and parameterized
843 start functionality (requires matching runtime).
845 2005-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
847 * ThreadAbortException.cs: added private serialization .ctor.
849 2004-12-20 Sebastien Pouliot <sebastien@ximian.com>
851 * CompressedStack.cs: Implemented most todo so it's usable for CAS.
852 * CompressedStackSwitcher.cs: Implemented most todo.
853 * Thread.cs: Implement support for getting/setting CompressedStack.
855 2004-12-15 Zoltan Varga <vargaz@freemail.hu>
857 * Thread.cs: Change type of culture_info and ui_culture_info to
858 IntPtr. Implement correct culture handling for the UI culture as
861 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
863 * Thread.cs: Optimize CurrentCulture to avoid initializing the
864 serialization infrastructure in the common case when the culture is
867 2004-12-06 Zoltan Varga <vargaz@freemail.hu>
869 * Thread.cs: Add new fields 'serialized_culture_info{_len}'.
871 * Thread.cs (CurrentCulture): Fix leaking of culture info objects
872 across appdomains. Partially fixes #50049.
874 2004-12-05 Miguel de Icaza <miguel@ximian.com>
876 * AutoResetEvent.cs (Set, Reset): If we are disposed, throw a
877 ObjectDisposedEvent, helped track the WebConnection destructor
880 2004-09-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
882 * Timer.cs: don't invoke the callback twice when the timer changes.
885 2004-09-08 Marek Safar <marek.safar@seznam.cz>
887 * Interlocked.cs: Class is static in NET_2_0.
889 2004-09-04 Sebastien Pouliot <sebastien@ximian.com>
891 * Thread.cs: Changed an imperative security demand to declarative
892 (unsupported) so it doesn't (for now) call the security runtime.
894 2004-08-20 Sebastien Pouliot <sebastien@ximian.com>
896 * Thread.cs: Added Fx 2.0 properties/methods/attributes.
898 2004-08-12 Sebastien Pouliot <sebastien@ximian.com>
900 * CompressedStackSwitcher.cs: Added missing [ComVisible] and
901 [ReliabilityContract] attributes.
902 * ExecutionContext.cs: Added missing [ComVisible] and
903 [Serializable] attributes.
904 * HostExecutionContext.cs: Added missing [ComVisible] attribute.
905 * HostExecutionContextManager.cs: Added missing [ComVisible] and
906 [ReliabilityContract] attributes.
907 * HostExecutionContextSwitcher.cs: Added missing Equals and
908 GetHashCode methods and [ComVisible] and [ReliabilityContract] attrs.
909 * ParameterizedThreadStart.cs: New delegate in NET_2_0.
910 * SendOrPostCallback.cs: Added missing [ComVisible] attribute.
911 * SynchronizationContext.cs: Added new (2.0 beta1) methods Copy and
912 WaitHelper. Added missing [ComVisible] and [ReliabilityContract] attrs.
913 * SynchronizationContextSwitcher.cs: Added missing [ComVisible] and
914 [ReliabilityContract] attributes.
916 2004-08-08 Sebastien Pouliot <sebastien@ximian.com>
918 * HostExecutionContext.cs: Fx 2.0 stub required for AppDomain.
919 * HostExecutionContextManager.cs: Fx 2.0 stub required for AppDomain.
920 * HostExecutionContextSwitcher.cs: Fx 2.0 stub required for AppDomain.
922 2004-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
924 * Timer.cs: don't invoke the callback if the period changes before the
925 due time. Fixes bug #62421.
927 2004-07-27 Lluis Sanchez Gual <lluis@novell.com>
929 * ExecutionContext.cs, ExecutionContextSwitcher.cs,
930 SynchronizationContext.cs, SynchronizationContextSwitcher.cs: Added
933 2004-07-15 Dick Porter <dick@ximian.com>
935 * Thread.cs: Hold a lock in GetNamedDataSlot. Fixes bug 61582,
936 based on patch by Sbastien Robitaille
937 (sebastien.robitaille@croesus.com). Also fix instances of
938 lock(typeof(Thread)) to lock a private object instead.
940 2004-07-14 Sebastien Pouliot <sebastien@ximian.com>
942 * AsyncFlowControl.cs: New structure in Fx 2.0 required in
943 System.Security namespace.
944 * CompressedStackSwitcher.cs: New structure in Fx 2.0 required in
945 System.Security namespace.
946 * ContextCallback.cs: New delegate in Fx 2.0 required in
947 System.Security namespace.
948 * CompressedStack.cs: Updated API for NET_2_0 profile.
950 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
952 * SendOrPostCallback.cs: New delegate.
954 2004-06-24 Dick Porter <dick@ximian.com>
956 * Mutex.cs: Implement the createdNew parameter
958 2004-06-15 Gert Driesen <drieseng@users.sourceforge.net>
960 * Thread.cs: changed return type of VolatileRead to UIntPtr
961 * ThreadPool.cs: set return type of SetMinThreads to bool
963 2004-06-15 Lluis Sanchez Gual <lluis@ximian.com>
965 * Thread.cs: Added new fields to keep sync with MonoThread.
966 Removed state changes in Sleep and Join. The state change is now done
967 in the icall. For accessing to internal fields lock with synch_lock
968 instead of this, which can be a source of deadlocks.
970 2004-06-15 Lluis Sanchez Gual <lluis@ximian.com>
972 * Timer.cs: Don't abort the thread if Dispose() is called from the runner
975 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
978 (CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
979 the thread IPrincipal if we get it from the AppDomain.
981 2004-06-09 Gert Driesen <drieseng@users.sourceforge.net>
983 * CompressedStack.cs: Added finalizer to match public API of
986 2004-05-19 Lluis Sanchez Gual <lluis@ximian.com>
988 * Thread.cs: Some fixes in Abort. Implemented Suspend and Resume.
989 Added internal interruption_requested field.
991 2004-05-13 Sebastien Pouliot <sebastien@ximian.com>
993 * CompressedStack.cs: Added an internal constructor so a default one
994 doesn't appear with corcompare.
995 * Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
996 corcompare. Both throw a NotImplementedException.
997 * ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
998 overloads) to please corcompare. All throw a NotImplementedException.
1000 2004-05-12 Zoltan Varga <vargaz@freemail.hu>
1002 * CompressedStack.cs: New file.
1004 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
1006 * ThreadPool.cs: Added GetMinThreads and SetMinThreads.
1007 * Timer.cs: In Change, return false if the timer has been disposed.
1008 In Dispose, notify the WaitHandle.
1010 2004-04-11 Lluis Sanchez Gual <lluis@ximian.com>
1012 * ReaderWriterLock.cs: More fixes: never wait where acquiring a reader lock
1013 if the thread already has the lock. Added readyWaitingReaders variable to
1014 keep track of threads ready to get the reader lock.
1016 2004-04-11 Lluis Sanchez Gual <lluis@ximian.com>
1018 * LockQueue.cs: Moved lockCount change inside the rwlock lock. Removed
1019 lock(this) when entering the rwlock to avoid a deadlock.
1020 * ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
1021 is not empty (even if state==0).
1023 2004-04-09 Zoltan Varga <vargaz@freemail.hu>
1025 * Timer.cs: Call the callback immediately if dueTime is 0. Fixes
1028 2004-04-08 Jackson Harper <jackson@ximian.com>
1030 * ReaderWriterLock.cs: Fix tyop
1032 2004-04-08 Lluis Sanchez Gual <lluis@ximian.com>
1034 * ReaderWriterLock.cs: Changed some methods to private.
1035 * WaitHandle.cs: In Wait methods, release the synchronization context when
1036 exitContext is true.
1038 2004-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1040 * Timer.cs: call Abort on the Runner instance too.
1042 2004-04-07 Jackson Harper <jackson@ximian.com>
1044 * Thread.cs: Use new culture info method for constructing the
1047 2004-04-07 Lluis Sanchez Gual <lluis@ximian.com>
1049 * ReaderWriterLock.cs: When a thread holds a writer lock, a call to
1050 AcquireReaderLock works like a call to AcquireWriterLock.
1052 2004-04-06 Lluis Sanchez Gual <lluis@ximian.com>
1054 * Monitor.cs: In Wait(), release the synchronization context when
1055 exitContext is true.
1057 2004-04-06 Lluis Sanchez Gual <lluis@ximian.com>
1059 * LockCookie.cs: Keep in this class the count of reader or writer locks
1060 for a thread, not only whether it has locks or not.
1061 * LockQueue.cs: Added property for checking if a thread is waiting in
1062 the queue. Wait now returns a boolean that set to false on timeout
1064 * ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
1065 The main change is that now it keeps a reader lock count for each
1066 thread. This is needed since methods like ReleaseLock or
1067 UpgradeToWriterLock need to return a per-thread status in LockCookie.
1068 Also added support for recursive writer-lock requests.
1070 2004-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1072 * ThreadAbortException.cs: use same HResult as MS.
1073 * Timer.cs: abort the running thread when disposing the Timer. This
1074 fixes NullRefs when finishing xsp.
1076 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1078 * NativeOverlapped.cs: added 2 new internal fields.
1079 * Overlapped.cs: implemented, but it's not used.
1081 * ThreadPool.cs: implemented BindHandle.
1083 2004-03-08 Zoltan Varga <vargaz@freemail.hu>
1085 * Timer.cs (Dispose): Applied patch from Jaroslaw Kowalski
1086 (jaak@zd.com.pl). Fix finalization problems during appdomain unload.
1088 2004-02-23 Jackson Harper <jackson@ximian.com>
1090 * LockCookie.cs: Add some fields for restoring locks.
1091 * ReaderWriterLock.cs: Implement
1092 * LockQueue.cs: New File - used for queueing thread locks in
1095 2004-02-19 Jackson Harper <jackson@ximian.com>
1097 * Monitor.cs: Fix spelleng.
1099 2004-02-09 Zoltan Varga <vargaz@freemail.hu>
1101 * Thread.cs: Add fields added to unmanaged MonoThread here as well.
1102 Fixes random errors caused by memory corruption.
1104 2004-02-06 Zoltan Varga <vargaz@freemail.hu>
1106 * Thread.cs: Store the thread name in unmanaged memory, since the
1107 thread object is shared between appdomains.
1109 2004-02-05 Sebastien Pouliot <sebastien@ximian.com>
1111 * Thread.cs: Implemented CurrentPrincipal.
1113 2004-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1115 * Thread.cs: delayed thread creation until Start is called. If we
1116 don't do that and Start() is not called, the thread is leaked. First
1117 step towards fixing bug #53078.
1119 2003-12-02 Dick Porter <dick@ximian.com>
1121 * Thread.cs: Throw InvalidOperationException if Thread.Name is
1124 2003-12-01 Dick Porter <dick@ximian.com>
1126 * Thread.cs: Implement CurrentCulture and CurrentUICulture
1128 2003-11-12 Miguel de Icaza <miguel@ximian.com>
1130 * Thread.cs: Add new VolatileRead/VolatileWrite methods from 1.1
1132 2003-10-23 Lluis Sanchez Gual <lluis@ximian.com>
1134 * Thread.cs: Added ResetDataStoreStatus and RestoreDataStoreStatus
1135 methods. They are used in CrossAppDomainChannel to save and restore
1136 thread's local data when switching between domains.
1138 2003-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1140 * ManualResetEvent.cs: added check for disposed.
1141 * Thread.cs: no need to init this field.
1143 2003-10-01 Zoltan Varga <vargaz@freemail.hu>
1145 * Thread.cs: Add locking to AllocateNamedDataSlot and
1148 Wed Aug 20 12:01:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
1150 * Thread.cs: put all the fields at the start and add
1151 more fields needed by the runtime.
1153 2003-08-14 Lluis Sanchez Gual <lluis@ximian.com>
1155 * Thread.cs: SetData() method: use Hashtable.Contains to check
1156 if a dataslot has been allocated (value could be null).
1158 2003-07-23 Duncan Mak <duncan@ximian.com>
1160 * WaitHandle.cs (CheckDisposed): This method is not in the public
1161 API, mark it as 'internal'.
1163 2003-07-01 Dick Porter <dick@ximian.com>
1165 * Thread.cs: Throw an exception if thread creation failed.
1166 (Better than just blowing up later.)
1168 2003-06-27 Dietmar Maurer <dietmar@ximian.com>
1170 * ThreadPool.cs: use async delegate invoke.
1172 2003-06-25 Dick Porter <dick@ximian.com>
1174 * WaitHandle.cs: Default handle value should be InvalidHandle, not
1177 2003-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1179 * ThreadPool.cs: correctly create a TimeSpan with provided the number of
1182 * WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
1184 2003-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1186 * WaitHandle.cs: checks and exceptions.
1188 2003-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1190 * NativeEventCalls.cs: added CloseEvent_intenal.
1191 * WaitHandle.cs: call CloseEvent_internal when disposing.
1193 2003-05-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1195 * RegisteredWaitHandle.cs: check that the callback is not null before
1198 * ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
1199 #43963). Queue the item before setting the handle. If there's a timeout,
1200 avoid trying to Dequeue, getting the exception et al, just continue the
1203 Mon May 19 09:07:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
1205 * Monitor.cs: removed test_owner, the check is already done in the
1208 Tue May 13 15:34:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1210 * Thread.cs: added missing field used by the runtime and
1211 a new field to support thread-static data.
1213 2003-04-17 Pedro Mart?ez Juli? <yoros@wanadoo.es>
1215 * Timer.cs: Change the position of two lines because they were
1216 before the "if" that ensures the integrity. After this, the first of
1217 that two lines was producing a NullReferenceException.
1219 2003-04-09 Dick Porter <dick@ximian.com>
1221 * Thread.cs: Make sure a reference to the ThreadStart delegate is
1222 held. There's no telling how long it will be before
1223 Thread.Start() is called, and GC might destroy the delegate.
1224 Thread() and Start() need to be rewritten so that the runtime
1225 creates the new thread when Start() is called, which will simplify
1226 the code a great deal.
1228 2003-03-20 Miguel de Icaza <miguel@ximian.com>
1230 * Thread.cs (CurrentCuluture): use the invaraint culture instead
1231 of "" for the current_culture setting.
1233 2003-03-25 Zoltan Varga <vargaz@freemail.hu>
1235 * Thread.cs: Fix visibility of ResetAbort().
1237 2003-03-18 Dick Porter <dick@ximian.com>
1239 * Thread.cs: Keep the thread state updated in all the places that
1240 require it. (Suspend, Resume and Interrupt not handled yet)
1242 2003-03-03 Lluis Sanchez Gual <lluis@ideary.com>
1244 * Thread.cs: Changed implementation of CurrentContext, adapted to the changes
1247 2003-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1249 * Thread.cs: implemented CurrentContext.
1251 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1253 * Thread.cs: made the thread_id for the current thread accesible through
1254 an internal property.
1256 2003-02-17 Dick Porter <dick@ximian.com>
1258 * Thread.cs: Added the Start semaphore field to the class. Update
1259 the thread state after Start() has returned, not before.
1261 2003-02-13 Zoltan Varga <vargaz@freemail.hu>
1263 * Thread.cs (Sleep): Timeout.Infinite is a value argument.
1265 2003-02-11 Dick Porter <dick@ximian.com>
1267 * Monitor.cs: Infinite wait is Infinite, not 0 ms
1269 2003-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1271 * Thread.cs: fixed bug #37759.
1273 2003-02-07 Patrik Torstensson
1275 * Timer.cs: Set the Background thread flag for the timer thread
1277 2003-02-05 Patrik Torstensson
1279 * ThreadPool.cs: Reformated and fixed issue that made all thread exit the pool.
1281 2003-02-04 Lluis Sanchez Gual <lluis@ideary.com>
1283 * ThreadPool.cs: Implemented RegisterWaitForSingleObject methods.
1285 Tue Jan 28 17:55:59 CET 2003 Paolo Molaro <lupus@ximian.com>
1287 * Thread.cs: delay-init datastorehash.
1289 2003-01-10 Patrik Torstensson <totte@race-x-change.com>
1291 * ThreadPool.cs: Temporary removed the usage of monitor thread, implemented a
1292 model more equal to the MS one.
1294 2002-12-10 Dick Porter <dick@ximian.com>
1300 * WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
1301 ms, not Milliseconds.
1303 2002-12-07 Martin Baulig <martin@ximian.com>
1305 * Timer.cs: Make it actually work; now it no longer sets your
1306 application on fire if you use a zero periode and Timer.Change()
1309 2002-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1311 * Timer.cs: implemented more stuff. It works now.
1313 2002-10-25 Zoltan Varga <vargaz@freemail.hu>
1315 * Thread.cs: Implement GetDomain() and GetDomainID().
1317 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1319 * ThreadPool.cs: now the monitor thread is not sleeping and checking if
1320 more worker threads needed. It waits on _DataInQueue. If (and only if)
1321 there's data in the queue it checks if more worker threads needed and
1322 then sleeps 0.5s before waiting for queued data again.
1324 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1326 * ThreadPool.cs: set IsThreadPoolThread before starting the worker.
1328 2002-09-11 Dick Porter <dick@ximian.com>
1331 * ManualResetEvent.cs:
1332 * AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
1335 * WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
1338 2002-09-03 Dick Porter <dick@ximian.com>
1340 * Thread.cs: Added thread ID field
1342 2002-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1344 * WaitHandle.cs: IDisposable fixes.
1346 2002-08-14 Dick Porter <dick@ximian.com>
1348 * Thread.cs: Make CurrentUICulture act the same as CurrentCulture
1351 2002-08-12 Dietmar Maurer <dietmar@ximian.com>
1353 * ThreadAbortException.cs: impl. ExceptionState property.
1355 * Thread.cs: moved all instance variables to the start of the
1356 class. added support for Thread::Abort()
1358 2002-04-30 Dick Porter <dick@ximian.com>
1360 * Thread.cs: If LocalDataStoreSlot already has data set, remove it
1361 before adding a new one.
1363 Use the Thread object destructor to tell the runtime to close the
1366 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
1368 * Interlocked.cs: made all methods icalls.
1370 2002-04-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1372 * IOCompletionCallback.cs: added attributes to the delegate
1373 (CLSCompliant(false) and Serializable).
1375 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
1376 * Thread.cs: Fixed IsThreadPoolThread to use a internal property instead of extending
1377 the threadstate enum.
1378 * ThreadPool.cs: Now using the internal Isthreadpoolthread property
1379 * ThreadState.cs: removed non-standard enum (ThreadPoolThread)
1381 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
1383 * ThreadState.cs: Added enum for threadpool thread
1384 * Thread.cs: changed the set/clr_state to be internal (used from threadpool)
1385 * Thread.cs: Added IsThreadPoolThread
1386 * ThreadPool.cs: Implementation of QueueUserWorkItem
1388 Wed Feb 13 21:51:30 CET 2002 Paolo Molaro <lupus@ximian.com>
1390 * Thread.cs: implement CurrentCulture property needed by
1391 Convert.ChangeType() (used when compiling enums).
1393 2002-01-23 Dick Porter <dick@ximian.com>
1395 * ManualResetEvent.cs:
1396 * AutoResetEvent.cs: Fixed DOS line endings
1398 2002-01-22 Veronica De Santis <veron78@interfree.it>
1400 * NativeEventCalls : Class that contains internal calls shared by Auto
1401 and Manual Reset Events
1402 * AutoResetEvents.cs : Added class AutoResetEvents and its implementation
1403 * ManualResetEvents.cs : Added class ManualResetEvents and its implementation
1405 2002-01-16 Veronica De Santis <veron78@interfree.it>
1407 * WaitHandle.cs : Renamed handle to os_handle and make it protected
1409 * Mutex.cs : Write the System.Threading.Mutex methods ( constructors
1410 and the ReleaseMutex)
1412 2002-01-15 Dick Porter <dick@ximian.com>
1415 * Thread.cs: Make the runtime's idea of infinite timeouts coincide
1416 with the class library's
1418 2002-01-10 Dick Porter <dick@ximian.com>
1420 * WaitHandle.cs: Added checks for too many handles and null
1421 handles in WaitAll() and WaitAny
1424 2002-01-05 Ravi Pratap <ravi@ximian.com>
1426 * AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
1429 * Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
1430 Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.
1432 2001-12-11 Dick Porter <dick@ximian.com>
1434 * WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
1437 2001-11-26 Dick Porter <dick@ximian.com>
1439 * Thread.cs: DataSlot uses a single system TLS slot, and a
1440 hashtable per thread. Some minor changes to reflect the new
1441 internal calls using the new IO library, and the newly-supported
1442 bool returns from internal calls.
1444 * Monitor.cs: Use bool returns from internal calls now they are
1445 supported by the runtime. Coalesce enter with the try_enter
1448 Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <lupus@ximian.com>
1450 * Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.
1452 2001-10-03 Dick Porter <dick@ximian.com>
1454 * Monitor.cs: Implemented all methods except the two Wait()
1455 methods that take boolean parameters
1457 2001-09-28 Dick Porter <dick@ximian.com>
1459 * Thread.cs: Implemented AllocateDataSlot(),
1460 AllocateNamedDataSlot(), FreeNamedDataSlot(), GetData(),
1461 GetNamedDataSlot(), SetData(), IsBackground. Reworked Thread()
1462 and Start() to avoid a race condition. Added thread-safe state
1463 changing private operations.
1465 * Monitor.cs: Comment out the GetType() calls because it isn't implemented yet
1467 2001-09-25 Dick Porter <dick@ximian.com>
1469 * Thread.cs: Implement Join and timed Join, set correct state
1470 around Start, Join and Sleep calls, implement IsAlive and
1471 ThreadState properties.
1473 * ThreadState.cs (Threading): Added StopRequested,
1474 SuspendRequested, Suspended values
1476 2001-09-23 Dick Porter <dick@ximian.com>
1478 * Thread.cs: Implemented CurrentThread and Sleep (both versions)
1479 with internal calls, and Name.
1481 2001-09-21 Dick Porter <dick@ximian.com>
1483 * Thread.cs: Implement Thread(ThreadStart) constructor and Start()
1484 with an internal call
1486 * WaitHandle.cs: Close calls Dispose(false)
1488 2001-09-13 Dick Porter <dick@ximian.com>
1490 * ApartmentState.cs (Threading): Set the correct enum values
1492 2001-09-13 Dick Porter <dick@ximian.com>
1494 * ApartmentState.cs, AutoResetEvent.cs, IOCompletionCallback.cs,
1495 Interlocked.cs, LockCookie.cs, ManualResetEvent.cs, Monitor.cs,
1496 Mutex.cs, NativeOverlapped.cs, Overlapped.cs, ReaderWriterLock.cs,
1497 RegisteredWaitHandle.cs, SynchronizationLockException.cs,
1498 Thread.cs, ThreadAbortException.cs, ThreadInterruptedException.cs,
1499 ThreadPool.cs, ThreadStart.cs, ThreadStateException.cs,
1500 Timeout.cs, Timer.cs, TimerCallback.cs, WaitCallback.cs,
1501 WaitHandle.cs, WaitOrTimerCallback.cs: System.Threading class
1504 2001-07-18 Michael Lambert <michaellambert@email.com>
1506 * ThreadPriority.cs, ThreadState.cs: Add.