Commit Graph
15 Commits
Author SHA1 Message Date
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Miguel de Icaza 58cb859143 Bring Parallel LINQ to the Mobile profile 2012-11-06 18:18:12 -05:00
Marek Safar 482e63b5bd Few corcompare fixes 2011-09-05 19:02:32 +01:00
Marek Safar d84d7c7eb9 Remove no longer used BOOTSTRAP conditionals 2010-12-29 12:41:12 +00:00
Jérémie Laval ec820e9208 [PLinq] Add Cancellation checks even deeper. Introduce merge token.
Merge token are simply the combined cancellation source of user (i.e. token supplied with PLinq operator WithCancellation) and internal tokens (supplied with WithImplementerToken).
2010-08-26 22:28:06 +01:00
Jérémie Laval bd0ee9281f Increment Barrier's phase number before signaling to threads that they can proceed. 2010-08-17 17:01:04 +01:00
Jérémie Laval 2abec426fe Move NET_4_0 define checks at the right position under the licence text 2010-08-13 16:25:20 +01:00
Jérémie Laval 95606933a5 Add BarrierPostPhaseException and use it when executing post-phase delegate in Barrier. 2010-08-13 14:19:05 +01:00
Jérémie Laval 5d71d5d42a Port Barrier to use ManualResetEventSlim for its waiting operations.
It replaces the simpler spinning on a boolean value while still being used in the same copying way in the algorithm.
2010-08-13 11:32:38 +01: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
Jérémie Laval b4db6246d1 2010-03-02 Jérémie Laval <[email protected]>
In class/System/:
   * System_test.dll.sources: Add System.Threading/BarrierTest.cs

In class/System/System.Threading/:
   * Barrier.cs: Remove dead comments

In class/System/Test/System.Threading/:
   * BarrierTest.cs: Add BarrierTest.

In class/corlib/:
   * corlib_test.dll.sources: Add System.Threading.Tasks/TaskFactoryTest.cs

In class/corlib/System.Threading.Tasks/:
   * Task.cs: If we add a continuation when the Task is already finished
   forces its schedule as a Task instead of executing on the calling thread.
   * TaskFactory.cs: Add ContinueWhenAny implementation when returning Task

In class/corlib/Test/System.Threading.Tasks/:
   * TaskFactoryTest.cs: Add TaskFactoryTests
   * TaskTest.cs: Re-enable TastTest

svn path=/trunk/mcs/; revision=152884
2010-03-02 23:01:28 +00:00
Jérémie Laval 0e17041cfd 2010-02-25 Jérémie Laval <[email protected]>
In class/System/System.Threading/:
   * Barrier.cs: Fix NRE with postPhaseAction delegate
   Fix possible deadlock when removing participant(s)

svn path=/trunk/mcs/; revision=152503
2010-02-25 21:08:19 +00:00
Miguel de Icaza c08a1042a4 2009-12-11 Miguel de Icaza <[email protected]>
* Barrier.cs: Implement IDisposable, add a bunch of IDisposable
	checks and some checks from the docs.

svn path=/trunk/mcs/; revision=148091
2009-12-11 05:36:59 +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 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