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
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
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
* ThreadPool.cs (QueueUserWorkItem): properly throw
an ANE instead of triggering a NRE when being passed a null callback.
svn path=/trunk/mcs/; revision=147934
* 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
* 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
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-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 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-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-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
* 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
* 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
* 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
* 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
* 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
* 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-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
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
* 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
* 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
* 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
* 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
* 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