TaskExecutionPolicy Enumeration
Microsoft Robotics Class Reference
Specifies dispatcher queue task scheduling behavior
Namespace: Microsoft.Ccr.Core
Assembly: Microsoft.Ccr.Core (in Microsoft.Ccr.Core.dll) Version: 4.0.261.0 (4.0.261.0)
Syntax
public enum TaskExecutionPolicy
Members
Member name | Value | Description | |
---|---|---|---|
Unconstrained | 0 | Default behavior, all tasks are queued with no constraints | |
ConstrainQueueDepthDiscardTasks | 1 | Queue enforces maximum depth (specified at queue creation) and discards tasks enqueued after the limit is reached | |
ConstrainQueueDepthThrottleExecution | 2 | Queue enforces maximum depth (specified at queue creation) but does not discard anny tasks. It forces the thread posting any tasks after the limit is reached, to sleep until the queue depth falls below the limit | |
ConstrainSchedulingRateDiscardTasks | 3 | Queue enforces the rate of task scheduling specified at queue creation and discards tasks enqueued after the current scheduling rate is above the specified rate | |
ConstrainSchedulingRateThrottleExecution | 4 | Queue enforces the rate of task scheduling specified at queue creation and forces the thread posting tasks to sleep until the current rate of task scheduling falls below the specified average rate |