Show / Hide Table of Contents

    Class LimitedConcurrencyLevelTaskScheduler

    Provides a task scheduler that ensures a maximum concurrency level while running on top of the thread pool.

    Source: https://msdn.microsoft.com/en-us/library/system.threading.tasks.taskscheduler(v=vs.110).aspx

    Inheritance
    System.Object
    LimitedConcurrencyLevelTaskScheduler
    Namespace: Lucene.Net.Support.Threading
    Assembly: Lucene.Net.dll
    Syntax
    public class LimitedConcurrencyLevelTaskScheduler : TaskScheduler

    Constructors

    | Improve this Doc View Source

    LimitedConcurrencyLevelTaskScheduler(Int32)

    Declaration
    public LimitedConcurrencyLevelTaskScheduler(int maxDegreeOfParallelism)
    Parameters
    Type Name Description
    System.Int32 maxDegreeOfParallelism

    Properties

    | Improve this Doc View Source

    MaximumConcurrencyLevel

    Declaration
    public override sealed int MaximumConcurrencyLevel { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    GetScheduledTasks()

    Declaration
    protected override sealed IEnumerable<Task> GetScheduledTasks()
    Returns
    Type Description
    IEnumerable<Task>
    | Improve this Doc View Source

    QueueTask(Task)

    Declaration
    protected override sealed void QueueTask(Task task)
    Parameters
    Type Name Description
    Task task
    | Improve this Doc View Source

    TryDequeue(Task)

    Declaration
    protected override sealed bool TryDequeue(Task task)
    Parameters
    Type Name Description
    Task task
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    TryExecuteTaskInline(Task, Boolean)

    Declaration
    protected override sealed bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
    Parameters
    Type Name Description
    Task task
    System.Boolean taskWasPreviouslyQueued
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)