Commit Graph
282 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 3683a0c596 2010-05-17 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: check object reference when the timers are equal.
	Fixes bug #605092.


svn path=/trunk/mcs/; revision=157410
2010-05-17 05:05:47 +00:00
Rolf Bjarne Kvinge 83c55a2905 In class/System.Core:
2010-04-23  Rolf Bjarne Kvinge  <[email protected]>

	* moonlight_raw_System.Core.dll.sources: Include Lazy.cs and
	LazyThreadSafetyMode.cs from corlib in here.

In class/corlib:
2010-04-23  Rolf Bjarne Kvinge  <[email protected]>

	* moonlight_raw_corlib.dll.sources: Don't include Lazy.cs here. It's in
	System.Core.dll.

In class/corlib/System.Threading:
2010-04-23  Rolf Bjarne Kvinge  <[email protected]>

	* LazyThreadSafetyMode.cs: Include in Moonlight build.

In class/corlib/System:
2010-04-23  Rolf Bjarne Kvinge  <[email protected]>

	* Lazy.cs: Include in Moonlight build.

svn path=/trunk/mcs/; revision=155983
2010-04-23 09:28:47 +00:00
Jérémie Laval 0d765d035d 2010-04-15 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs:
   * ConcurrentBag.cs: Add BOOTSTRAP_NET_4_0

In class/System/System.Threading/:
   * Barrier.cs: Add BOOTSTRAP_NET_4_0

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs:
   * ConcurrentSkipList.cs:
   * OrderablePartitioner.cs:
   * Partitioner.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Collections/:
   * IStructuralComparable.cs:
   * IStructuralEquatable.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading.Tasks/:
   * Future.cs:
   * Task.cs:
   * TaskCanceledException.cs:
   * TaskContinuationOptions.cs:
   * TaskCreationOptions.cs:
   * TaskFactory.cs:
   * TaskScheduler.cs:
   * TaskStatus.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading/:
   * AtomicBoolean.cs:
   * CountdownEvent.cs:
   * SpinLock.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System/:
   * Tuple.cs:
   * Tuples.cs: Add BOOTSTRAP_NET_4_0 define

svn path=/trunk/mcs/; revision=155531
2010-04-15 19:01:26 +00:00
Gonzalo Paniagua Javier 9f3c801b91 Reworked the threadpool. See individual ChangeLog entries for details.
svn path=/trunk/mcs/; revision=154243
2010-03-26 03:12:56 +00:00
Sebastien Pouliot 67f3a048dc 2010-03-23 Sebastien Pouliot <[email protected]>
* Monitor.cs: Implement new NET_4_0 (and SL4) Enter overload 
	required to run some DRT tests (e.g. 7007)


svn path=/trunk/mcs/; revision=154067
2010-03-23 15:48:23 +00:00
Jb Evain ba09e4ba86 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153658
2010-03-16 12:11:37 +00:00
Jérémie Laval 3b38ebe651 2010-03-08 Jérémie Laval <[email protected]>
In class/corlib/System.Threading/:
   * SpinLock.cs: Merge algorithm back in SpinLock struct

svn path=/trunk/mcs/; revision=153276
2010-03-08 18:35:17 +00:00
Jérémie Laval 487198f1de 2010-03-08 Jérémie Laval <[email protected]>
In class/corlib/:
   * corlib_test.dll.sources: Add System.Threading/SpinLockTests.cs

In class/corlib/System.Threading/:
   * SpinLock.cs: Update to use ticket spinlock algorithm

In class/corlib/Test/System.Threading/:
   * SpinLockTests.cs: Added unit tests for SpinLock

svn path=/trunk/mcs/; revision=153273
2010-03-08 17:21:05 +00:00
Rodrigo Kumpera e8e247d311 2010-02-26 Rodrigo Kumpera <[email protected]>
* LazyThreadSafetyMode.cs: Added.

svn path=/trunk/mcs/; revision=152594
2010-02-26 23:07:41 +00:00
Zoltan Varga 00bdc8dcca 2010-02-08 Zoltan Varga <[email protected]>
* WaitHandle.cs (CheckArray): Check that the handles array is not null.
	Fixes #576039.

svn path=/trunk/mcs/; revision=151017
2010-02-08 10:24:21 +00:00
Jérémie Laval e531fc2677 2010-02-02 Jérémie Laval <[email protected]>
In class/corlib/:
   * corlib.dll.sources: Add System.Threading.Tasks/SimpleConcurrentBag.cs
   and System.Threading.Tasks/UnobservedTaskExceptionEventArgs.cs

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs:
   * ConcurrentQueue.cs:
   * ConcurrentStack.cs:
   * Partitioner.cs: Port to .NET 4 beta 2 API
   * ConcurrentSkipList.cs: Use Monitor for locking

In class/corlib/System.Threading.Tasks/:
   * Future.cs:
   * Parallel.cs:
   * ParallelLoopState.cs:
   * Task.cs:
   * TaskCompletionSource.cs:
   * TaskContinuationOptions.cs:
   * TaskCreationOptions.cs:
   * TaskFactory.cs:
   * TaskScheduler.cs:
   * UnobservedTaskExceptionEventArgs.cs: Port to .NET 4 beta 2 API
   * SimpleConcurrentBag.cs: Add a simpler implementation of ConcurrentBag
   for use with parallel loops as ConcurrentBag was moved to System

In class/corlib/System.Threading/:
   * CancellationToken.cs:
   * CancellationTokenSource.cs:
   * ManualResetEventSlim.cs:
   * SemaphoreSlim.cs:
   * SpinLock.cs:
   * SpinWait.cs:
   * ThreadLocal.cs: Port to .NET 4 beta 2 API

In class/corlib/System/:
   * AggregateException.cs:
   * OperationCanceledException.cs: Port to .NET 4 beta 2 API

In class/corlib/Test/System.Collections.Concurrent/:
   * CollectionStressTestHelper.cs:
   * ConcurrentBagTests.cs:
   * ConcurrentDictionaryTests.cs:
   * ConcurrentQueueTests.cs:
   * ConcurrentSkipListTests.cs:
   * ConcurrentStackTests.cs:
   * ParallelConcurrentQueueTests.cs:
   * ParallelConcurrentStackTests.cs: Update namespaces and tested methods

In class/corlib/Test/System.Threading.Tasks/:
   * FutureTests.cs:
   * ParallelTestHelper.cs:
   * ParallelTests.cs:
   * SnziTests.cs:
   * TaskCompletionSourceTests.cs:
   * TaskTest.cs: Update namespace and tested methods

In class/corlib/Test/System.Threading/:
   * CancellationTokenTests.cs:
   * LazyInitTests.cs:
   * ThreadLazyTests.cs: Update namespace and tested methods

svn path=/trunk/mcs/; revision=150716
2010-02-02 17:06:15 +00:00
Jb Evain 5ba924f8d7 2009-12-09 Jb Evain <[email protected]>
* ThreadPool.cs (QueueUserWorkItem): properly throw
	an ANE instead of triggering a NRE when being passed a null callback.


svn path=/trunk/mcs/; revision=147934
2009-12-09 19:21:25 +00:00
Miguel de Icaza 5e63701d4b 2009-11-02 Miguel de Icaza <[email protected]>
* Jumbo patch to drop support for pre-NET_2_0 code:

        Remove ONLY_1_1 code
        Remove NET_1_0 only code
        Remove NET_2_0 defines assuming the value is true.


svn path=/trunk/mcs/; revision=145230
2009-11-02 23:22:40 +00:00
Sebastien Pouliot ccffcae90d 2009-11-02 Sebastien Pouliot <[email protected]>
* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
	to true until after the null check and the return statement.


svn path=/trunk/mcs/; revision=145214
2009-11-02 20:05:35 +00:00
Jérémie Laval 84ffc71a15 2009-11-02 Jérémie Laval <[email protected]>
In class/corlib/System.Threading/:
   * Parallel.cs: Added fix for Bug #536919.

In class/corlib/Test/System.Threading/:
   * ParallelTests.cs: Added unit test for Bug #536919, cleaned up.

svn path=/trunk/mcs/; revision=145203
2009-11-02 16:06:11 +00:00
Sebastien Pouliot b6a5bb1207 In System.Threading:
2009-10-25  Sebastien Pouliot  <[email protected]>

	* Thread.cs: Fix validations for Join and Sleep overloads

In Test/System.Threading:
2009-10-25  Sebastien Pouliot  <[email protected]>

	* ThreadTest.cs: Add test cases for Current[UI]Culture (not 
	working), Name, Join, Sleep and SpinWait


svn path=/trunk/mcs/; revision=144824
2009-10-25 16:41:18 +00:00
Sebastien Pouliot 2d0767d3b8 In System.Threading:
2009-10-22  Sebastien Pouliot  <[email protected]>
	* EventWaitHandle.cs: Add validation on the EventResetMode 
	parameter used in the constructors
In .:
2009-10-22  Sebastien Pouliot  <[email protected]>

	* corlib_test.dll.sources: Add System/WeakReferenceTest and
	System.Threading/EventWaitHandleTest.cs

In Test/System.Threading:
2009-10-22  Sebastien Pouliot  <[email protected]>
	* EventWaitHandleTest.cs: New. Test case for EventResetMode 
	validation
In Test/System:
2009-10-22  Sebastien Pouliot  <[email protected]>

	* WeakReferenceTest.cs: New. Basic test cases


svn path=/trunk/mcs/; revision=144681
2009-10-22 20:46:35 +00:00
Sebastien Pouliot cfc8c38546 In System.Threading:
2009-10-22  Sebastien Pouliot  <[email protected]> 

	* Monitor.cs: Fix validations for TryEnter and Wait. Reduce 
	duplicated code between overloads.

In Test/System.Threading:
2009-10-22  Sebastien Pouliot  <[email protected]> 

	* MonitorTest.cs: Mark existing tests as "NotWorking" since they
	fail in MS FX2 (maybe they worked in 1.x?). Add more test cases
	to validate the TryEnter and Wait overloaded methods.


svn path=/trunk/mcs/; revision=144627
2009-10-22 11:51:31 +00:00
Sebastien Pouliot dff2c0d12a In System.Threading:
2009-10-21  Sebastien Pouliot  <[email protected]>

	* WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
	in Wait[One|Any|All]. Also call the overloaded (bool) methods for
	WaitAll to reduce code duplication.

In .:
2009-10-21  Sebastien Pouliot  <[email protected]>

	* corlib_test.dll.sources: Add System.Threading/WaitHandleTest.cs

In Test/System.Threading:
2009-10-21  Sebastien Pouliot  <[email protected]>

	* WaitHandleTest.cs: New. Add test cases for Wait[One|All|Any]
	methods overloads (at least the one present in Silverlight 2)


svn path=/trunk/mcs/; revision=144529
2009-10-21 12:18:22 +00:00
Sebastien Pouliot f3506a6f99 In System.Threading:
2009-10-20  Sebastien Pouliot  <[email protected]>

	* Timer.cs: Always call Init from every constructors to avoid 
	duplicate checks. Fix validations on different dueTime and period
	(ctor and Change methods). Seal private TimerComparer class and
	avoid multiple (identical) casts in its Compare method. Seal 
	private Scheduler class.

In Test/System.Threading:
2009-10-20  Sebastien Pouliot  <[email protected]>

	* TimerTest.cs: Add more validation tests


svn path=/trunk/mcs/; revision=144466
2009-10-20 15:52:42 +00:00
Gonzalo Paniagua Javier ec80c092b5 2009-10-20 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: make sure we don't insert 2 timers with the same key.


svn path=/trunk/mcs/; revision=144462
2009-10-20 15:29:04 +00:00
Jb Evain d40cd894df 2009-10-20 Jb Evain <[email protected]>
* Thread.cs: change type of the current_appcontext field to object
	to avoid triggering static constructors unless explicitely required.


svn path=/trunk/mcs/; revision=144431
2009-10-20 09:03:19 +00:00
Gonzalo Paniagua Javier 6de52aa290 2009-10-16 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: looks like any negative value is treated as Infinite.


svn path=/trunk/mcs/; revision=144283
2009-10-16 17:45:09 +00:00
Sebastien Pouliot c85fce7f73 2009-10-07 Sebastien Pouliot <[email protected]>
* Thread.cs: Remove LocalDataStoreSlot-related methods from
	Moonlight build


svn path=/trunk/mcs/; revision=143629
2009-10-07 12:31:16 +00:00
Rolf Bjarne Kvinge 2994492806 2009-09-29 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: StartSafe: ignore ThreadAbortExceptions.

svn path=/trunk/mcs/; revision=142847
2009-09-29 10:59:54 +00:00
Gonzalo Paniagua Javier 8defce07e3 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: account for the time spent sending jobs to the queue.


svn path=/trunk/mcs/; revision=142703
2009-09-27 05:48:08 +00:00
Mark Probst 1c5ff76d6c 2009-09-26 Mark Probst <[email protected]>
* Thread.cs: Serialize the principal so as not to make it cross
	appdomains.  Two new internal calls for copying byte arrays
	between domains.

2009-09-26  Mark Probst  <[email protected]>

	* Environment.cs: Corlib version bump.

svn path=/trunk/mcs/; revision=142671
2009-09-26 11:20:02 +00:00
Mark Probst 0473dde9f7 2009-09-25 Mark Probst <[email protected]>
* Thread.cs: The Thread class is split up into Thread and
	InternalThread now.  We have exactly one InternalThread per
	thread, and at most one Thread per appdomain per thread.  Most
	data is stored in InternalThread.  All InternalThread objects live
	in the root domain.

	* Environment.cs: Corlib version bump.

svn path=/trunk/mcs/; revision=142661
2009-09-25 21:48:40 +00:00
Gonzalo Paniagua Javier e7daab3777 2009-09-24 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: no need to wake up the scheduler when removing the next
	scheduled item.


svn path=/trunk/mcs/; revision=142547
2009-09-24 04:31:58 +00:00
Gonzalo Paniagua Javier 81d05c0ea4 2009-09-23 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: rewritten. It only has one queue now and it is sorted by
	due time. Before this changes, it was using a lot of CPU when there
	were a lot of 'future' timers.


svn path=/trunk/mcs/; revision=142524
2009-09-23 23:01:03 +00:00
Sebastien Pouliot f07228a460 2009-09-23 Sebastien Pouliot <[email protected]>
* ExecutionContext.cs: Don't use SecurityContext and don't expose
	AsyncFlowControl for NET_2_1
	* ThreadAbortException.cs: Remove ExceptionState from NET_2_1
	* Thread.cs: Don't expose ApartmentState and remove Suspend and
	Resume methods for NET_2_1
	* ThreadPool.cs: Remove GetAvailableThreads and Unsafe* methods
	for NET_2_1


svn path=/trunk/mcs/; revision=142481
2009-09-23 12:58:58 +00:00
Jb Evain 0fda7eb8e7 2009-09-22 Jb Evain <[email protected]>
* Timer.cs: MONOTOUCH doesn't support remoting, so do not pass
	true to exitContext when calling WaitOne on a WaitHandle.


svn path=/trunk/mcs/; revision=142411
2009-09-22 15:43:35 +00:00
Sebastien Pouliot a0818feb95 2009-09-22 Sebastien Pouliot <[email protected]>
* Thread.cs: Remove [Get|Set]CompressedStack for NET_2_1


svn path=/trunk/mcs/; revision=142401
2009-09-22 13:40:55 +00:00
Sebastien Pouliot 5d0ed14755 In System.Threading:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* Thread.cs: Remove CurrentPrincipal property for NET_2_1
	* ExecutionContext.cs: Remove Run method for NET_2_1

In System.Security:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* SecurityContext.cs: Don't use WindowsIdentity under NET_2_1

In System:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* AppDomain.cs: Remove use of IPrincipal, Evidence and 
	PermissionSet types for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
	Remove most of System.Security.Policy and System.Security.Principal
	and more of System.Security.Permissions from NET_2_1 build

In System.Security.Policy:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* PolicyLevel_2_1.cs: Remove use of PolicyStatement


svn path=/trunk/mcs/; revision=142324
2009-09-21 11:54:24 +00:00
Sebastien Pouliot 9f87d8f285 2009-09-20 Sebastien Pouliot <[email protected]>
* EventWaitHandle.cs: Remove AccessControl usage for NET_2_1
	* Mutex.cs: Remove some ctors and AccessControl usage for NET_2_1
	* NativeEventCalls.cs: Remove AccessControl usage for NET_2_1


svn path=/trunk/mcs/; revision=142281
2009-09-20 16:38:40 +00:00
Jérémie Laval e828ffcda6 2009-08-19 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs: Rewrite to use a transaction id
   based approach. Ported to 4.0 API. Fix GetConsumingEnumerable.

In class/System/Test/System.Collections.Concurrent/:
   * BlockingCollectionTests.cs: Track API changes.

In class/System/System.Threading/:
   * Barrier.cs: Fix Barrier to be really thread-safe.
   Remove deadlocking.

In class/corlib/System.Collections.Concurrent/:
   * Partitioner.cs: Fix infinite recursion when calling Create
   with a IList.
   * Partitionners/ListPartitioner.cs: Fix bad splitting for the
   last partition.

In class/corlib/System.Threading.Tasks/:
   * Task.cs: Refactor Wait methods.

In class/corlib/System.Threading/:
   * AtomicBoolean.cs: Turn it into a class
   * CountdownEvent.cs: Work on cached variable. Make sure
   count doesn't go under 0.
   * ParallelLoopState.cs: Initialize correctly AtomicBoolean.

svn path=/trunk/mcs/; revision=140229
2009-08-19 10:51:42 +00:00
Jérémie Laval 2e21472723 2009-08-11 Jérémie Laval <[email protected]>
In build/common/:
   * Consts.cs.in: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentQueue.cs:
   * IProducerConsumerCollection.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Runtime.CompilerServices/:
   * TypeForwardedFromAttribute.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System.Threading/:
   * Watch.cs:
   * SpinWait.cs:
   * CountdownEvent.cs:
   * CancellationToken.cs:
   * ICancelableOperation.cs:
   * CancellationTokenSource.cs:
   * CancellationTokenRegistration.cs: Add BOOTSTRAP_NET_4_0.

In class/corlib/System/:
   * Funcs.cs:
   * Action.cs:
   * AggregateException.cs: Add BOOTSTRAP_NET_4_0.

svn path=/trunk/mcs/; revision=139736
2009-08-11 21:10:04 +00:00
Jérémie Laval 9bf30cecff 2009-08-11 Jérémie Laval <[email protected]>
* Update unit tests
    * Moved BlockingCollection and Barrier in System.dll (with assorted fixes)
    * Fix wrong signature in TaskFactory<T>
    * Update .dll.sources files
    * Move AggregateException in System namespace
    * Remove While in Parallel
    * Correct Wait(CancellationToken) signature in CountdownEvent
    * update corlib.dll.sources

svn path=/trunk/mcs/; revision=139727
2009-08-11 18:47:31 +00:00
Jérémie Laval 9a8be31839 2009-08-04 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/:
	* ConcurrentDictionary: Fix compilation issue
	with IDictionary methods.

In class/corlib/System.Threading/:
	* SpinLock: Remove unused private methods.

svn path=/trunk/mcs/; revision=139338
2009-08-04 10:58:51 +00:00
Zoltan Varga f1fd210aab 2009-08-03 Zoltan Varga <[email protected]>
* Thread.cs: Always call Thread_free_internal from the finalizer, since
	it frees other things besides the handle. Fixes #527576.

svn path=/trunk/mcs/; revision=139281
2009-08-03 13:28:59 +00:00
Jérémie Laval 7baa3c7178 In class/corlib/:
* corlib.dll.sources: Added TaskCompletionSource
        * corlib_test.dll.sources: Removed SnziTests due to
		visibility change in Snzi.
        Added TaskCompletionSource tests.

In class/corlib/System.Collections.Concurrent/:
        * ConcurrentBag.cs:
        * ConcurrentQueue.cs:
        * ConcurrentStack.cs:
        * ConcurrentSkipList.cs:
        * ConcurrentDictionary.cs:
        * IProducerConsumerCollection.cs: Make the namespace comply to 4.0b1

In class/corlib/System.Threading.Tasks/:
        * Task.cs:
        * Future.cs:
        * TaskFactory.cs:
        * TaskCanceledException.cs:
        * TaskSchedulerException.cs:
        * Internal/SchedulerProxy.cs: Make System.Threading.Tasks API fully 4.0 b1 compliant.
        * TaskCompletionSource.cs: Add TaskCompletionSource class

In class/corlib/System.Threading/:
        * Snzi.cs:
        * Parallel.cs:
        * SpinLock.cs:
        * SpinWait.cs:
        * ThreadLocal.cs:
        * SemaphoreSlim.cs:
        * CountdownEvent.cs:
        * ManualResetEventSlim.cs:
        * CancellationTokenSource.cs: Various 4.0 b1 API mismatch fixes.

In class/corlib/Test/System.Collections.Concurrent/:
        * ConcurrentDictionary: Ignore tests until runtime/compiler
        is fixed

svn path=/trunk/mcs/; revision=139206
2009-07-31 18:08:49 +00:00
Jérémie Laval b5d889b654 Author: Jérémie Laval <[email protected]>
Date:   Thu Jul 30 15:37:21 2009 +0200

First code drop of ParallelFx.

svn path=/trunk/mcs/; revision=139083
2009-07-30 13:56:32 +00:00
Jb Evain 5a7278b078 2009-07-21 Jb Evain <[email protected]>
* ThreadPool.cs: avoid an unecessary method call when not running
	in moonlight.


svn path=/trunk/mcs/; revision=138313
2009-07-21 16:23:42 +00:00
Jb Evain 6fe38f5790 2009-07-20 Jb Evain <[email protected]>
* Thread.cs: use the moonlight specific thread start
	hack for the net_2_1 profile exclusively.


svn path=/trunk/mcs/; revision=138225
2009-07-20 16:03:23 +00:00
Miguel de Icaza 1601b10bbf 2009-06-25 Miguel de Icaza <[email protected]>
* Timer.cs: Throw ArgumentNullException if the callback is null. 

svn path=/trunk/mcs/; revision=136912
2009-06-26 00:47:19 +00:00
Bill Holmes 48cfa18d07 2009-06-22 Bill Holmes <[email protected]>
* object-internals.h : Adding interrupt_on_stop field.

	* threads.c (mono_thread_request_interruption) : On Windows exit the
	  thread if interrupt_on_stop is set.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
	  Removing old interrupt logic and setting the interrupt_on_stop for the
	  thread when calling accept.

	* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
	  setting the interrupt_on_stop for the thread when calling accept.

	* Thread.cs : Adding interrupt_on_stop field.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=136628
2009-06-22 17:41:26 +00:00
Rolf Bjarne Kvinge 003f517773 2009-06-10 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: MoonlightUnhandledException: ensure there's no way to
	reach native code with a managed exception.

svn path=/trunk/mcs/; revision=135897
2009-06-10 22:17:32 +00:00
Sebastien Pouliot bd19dacb39 2009-06-10 Sebastien Pouliot <[email protected]>
* Thread.cs: Refactor calling Moonlight's OnUnhandledException to 
	make sur the delegate it not called from a [SecuritySafeCritical]
	caller.
	* ThreadPool.cs: Reuse the above code for QueueUserWorkItem. 
	Original patch from Alan McGovern


svn path=/trunk/mcs/; revision=135866
2009-06-10 17:17:55 +00:00
Marek Safar 9c0eadd375 2009-06-10 Marek Safar <[email protected]>
* LockRecursionException.cs: New file.


svn path=/trunk/mcs/; revision=135848
2009-06-10 14:19:54 +00:00
Mark Probst 322f82badc 2009-04-21 Mark Probst <[email protected]>
* Thread.cs: Make the execution context field thread-static to
        avoid it being shared between app domains.

2009-04-21  Mark Probst  <[email protected]>

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=132308
2009-04-21 18:39:48 +00:00