ConcurrentExclusiveSchedulerPair Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides task schedulers that coordinate to execute tasks while ensuring that concurrent tasks may run concurrently and exclusive tasks never do.
Assembly: mscorlib (in mscorlib.dll)
The ConcurrentExclusiveSchedulerPair type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ConcurrentExclusiveSchedulerPair() | Initializes a new instance of the ConcurrentExclusiveSchedulerPair class. |
![]() | ConcurrentExclusiveSchedulerPair(TaskScheduler) | Initializes a new instance of the ConcurrentExclusiveSchedulerPair class that targets the specified scheduler. |
![]() | ConcurrentExclusiveSchedulerPair(TaskScheduler, Int32) | Initializes a new instance of the ConcurrentExclusiveSchedulerPair class that targets the specified scheduler with a maximum concurrency level. |
![]() | ConcurrentExclusiveSchedulerPair(TaskScheduler, Int32, Int32) | Initializes a new instance of the ConcurrentExclusiveSchedulerPair class that targets the specified scheduler with a maximum concurrency level and a maximum number of scheduled tasks that may be processed as a unit. |
| Name | Description | |
|---|---|---|
![]() | Completion | Gets a Task that will complete when the scheduler has completed processing. |
![]() | ConcurrentScheduler | Gets a TaskScheduler that can be used to schedule tasks to this pair that may run concurrently with other tasks on this pair. |
![]() | ExclusiveScheduler | Gets a TaskScheduler that can be used to schedule tasks to this pair that must run exclusively with regards to other tasks on this pair. |
| Name | Description | |
|---|---|---|
![]() | Complete | Informs the scheduler pair that it should not accept any more tasks. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The following example shows the use of the ConcurrentExclusiveSchedulerPair class. Readers run on the concurrent part of the scheduler. The writer runs on the exclusive part of the scheduler. This code example is part of a larger example provided for the [27ece374-ed5b-49ef-9cec-b20db34a65e8] topic.


