Commit Graph
35 Commits
Author SHA1 Message Date
Martin Baulig 03bb7b498a System.Threading.{Semaphore|EventWaitHandle|Mutex}.TryOpenExisiting(). 2013-03-12 21:15:55 -04:00
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
James Bellinger b58c6c1a79 Implement SemaphoreSecurity. 2012-07-08 15:13:51 -04:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04: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 61b99b2cb5 Change #if line position in BarrierPostPhaseException to be below licence text 2010-08-13 14:36:12 +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
Jb Evain 976bf8b5b3 fix bootstrap
svn path=/trunk/mcs/; revision=154875
2010-04-06 17:44:29 +00:00
Jb Evain c4713ea4a0 2010-04-06 Jb Evain <[email protected]>
* SemaphoreFullException.cs: moved to corlib in net_4_0.


svn path=/trunk/mcs/; revision=154866
2010-04-06 16:19:21 +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
Marek Safar 1bad3c9e1b 2009-12-03 Marek Safar <[email protected]>
* BlockingCollection.cs, ConcurrentBag.cs: Updated to Beta 2 API.


svn path=/trunk/mcs/; revision=147544
2009-12-03 10:36:22 +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
Konstantin Triger e12624a0cf remove TARGET_JVM defines
svn path=/trunk/mcs/; revision=72289
2007-02-05 12:10:29 +00:00
Miguel de Icaza d3a7b29d9e update message
svn path=/trunk/mcs/; revision=68359
2006-11-22 18:34:01 +00:00
Andrew Skiba deff483c2d TARGET_JVM
svn path=/trunk/mcs/; revision=66024
2006-09-28 13:23:17 +00:00
Dick Porter 8265935e1b 2005-12-23 Dick Porter <[email protected]>
* EventWaitHandle.cs: 
        * Mutex.cs: Implement OpenExisting

        * NativeEventCalls.cs: Add OpenEvent icall for OpenExisting in
        2.0.  Add a "created" boolean out parameter to CreateEvent icall.

        * ManualResetEvent.cs: 
        * AutoResetEvent.cs: Update CreateEvent icall signature (now has
        "created" boolean out parameter.)

2005-12-23  Dick Porter  <[email protected]>

        * Semaphore.cs: Implement OpenExisting

2005-12-23  Dick Porter  <[email protected]>

        * MutexRights.cs: New for 2.0 profile

2005-12-23  Dick Porter  <[email protected]>

        * SemaphoreRights.cs: Make the [Flags] enum more obvious

2005-12-23  Dick Porter  <[email protected]>

        * SemaphoreTest.cs: Enable another test

2005-12-23  Dick Porter  <[email protected]>

        * corlib.dll.sources: Added System.Security.AccessControl.MutexRights



svn path=/trunk/mcs/; revision=54801
2005-12-23 20:29:06 +00:00
Dick Porter ffa67db0cd 2005-11-26 Dick Porter <[email protected]>
* Semaphore.cs: Implemented with icalls



svn path=/trunk/mcs/; revision=53505
2005-11-26 12:53:42 +00:00
Sebastien Pouliot 403bb72428 Fix API (corcompare)
svn path=/trunk/mcs/; revision=53183
2005-11-17 15:13:46 +00:00
Sebastien Pouliot 7e725f927d 2005-11-17 Sebastien Pouliot <[email protected]>
* Semaphore.cs: New (2.0). Incomplete (missing runtime support).
	* SemaphoreFullException.cs: New (2.0).


svn path=/trunk/mcs/; revision=53178
2005-11-17 13:40:18 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Sean MacIsaac 6d11b05caa Removing old build files. NAnt doesn't use them.
svn path=/trunk/mcs/; revision=969
2001-09-26 09:11:29 +00:00
Dick Porter 7881d9719c 2001-09-21 Dick Porter <[email protected]>
* Thread.cs: Implement Thread(ThreadStart) constructor and Start()
	with an internal call

	* WaitHandle.cs: Close calls Dispose(false)

2001-09-21  Dick Porter  <[email protected]>

	* ThreadExceptionEventArgs.cs: Implemented

svn path=/trunk/mcs/; revision=909
2001-09-21 10:45:31 +00:00
Dick Porter 30a82dcb2e More System.Threading stubs, in the System assembly.
svn path=/trunk/mcs/; revision=811
2001-09-13 12:49:58 +00:00