Commit Graph
15 Commits
Author SHA1 Message Date
Maxime Brugidou 233396aa13 ConcurrentBag staging could become empty
after all items have been removed from a bag, the staging dictionary
is cleaned up but never filled again.
2013-11-19 13:55:03 +01:00
Maxime Brugidou d970f3744e [Bug 16334] Fix ConcurrentBag.TryTake and TryPeek
Should return false if no result in all cases

see https://bugzilla.xamarin.com/show_bug.cgi?id=16334
2013-11-19 11:09:35 +01:00
Rodrigo Kumpera a3b80aeccb [bcl]Replace more long fields with int to make them CAS friendly on 32 bits systems. 2013-09-04 14:59:13 -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
Jeremie Laval 830fe40ba0 [System] Ensure we use logical shift and not arithmetic shift 2012-07-27 14:17:57 +01:00
Jeremie Laval 5fd109f855 [System] Check for Abort state when poping so that we can retry 2012-07-25 17:37:52 +01:00
Jeremie Laval ccd53a905e [System] Optimize ConcurrentBag, implement TryPeek and add unit tests
Initially reported by linquize
2012-07-24 17:09:15 +01:00
Jérémie Laval 093ed98316 Fix .NET 4 API 2011-01-06 16:08:31 +00:00
Jérémie Laval 0b053ef9fb Don't PopTop from our personnal bag in ConcurrentBag. 2010-08-27 15:03:39 +01:00
Jérémie Laval 9e35d37fb6 Little 4.0 API signature tweaks 2010-08-19 17:27:00 +01:00
Jérémie Laval eb4c91f411 Port ConcurrentBag to use ConcurrentDictionary.
ConcurrentDictionary is now used to store the per-thread CyclicDeque instances instead of maintaining a growing array ourselves. Add hints are still used.
2010-08-13 11:32:39 +01:00
Jérémie Laval fe983225ad 2010-06-03 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * ConcurrentBag.cs: Add a add hint cache for faster steal retrieval.
   Initialize lazily the underlying CyclicDeque.

In class/corlib/Test/System.Collections.Concurrent/:
   * CollectionStressTestHelper.cs: Bump remove test repeat to 1000.
   Use a local variable for tracking status and only update the global one
   at the end.

svn path=/trunk/mcs/; revision=158417
2010-06-03 16:51:22 +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
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