Was this page helpful?

IDispatchHost Interface

    Table of contents
    1. 1. Members
      1. 1.1. Properties
      2. 1.2. Methods
    Table of Contents
    public abstract interface IDispatchHost
    Namespace: MindTouch.Threading
    Assembly: mindtouch.dream
    Type Hierarchy:
    • IDispatchHost
    IDispatchHost interface provides methods for requesting new work-items and processing them.

    Members

    Properties

    Visibility Description
    Public PendingWorkItemCount Number of items that are waiting to be dispatched.
    Public MinThreadCount Minimum number of threads used by the dispatch host.
    Public MaxThreadCount Maximum number of threads used by the dispatch host.
    Public ThreadCount Current number of threads used by the dispatch host.

    Methods

    Visibility Description
    Public RequestWorkItem(DispatchThread thread, Result<DispatchWorkItem> result) Invoked by an assigned DispatchThread when request a new work-item.
    Public IncreaseThreadCount(string reason) Invoked by DispatchThreadScheduler to indicate that dispatch host should request additional threads if needed.
    Public MaintainThreadCount(string reason) Invoked by DispatchThreadScheduler to indicate that dispatch host should neither request new threads, nor release threads that are in use.
    Public DecreaseThreadCount(string reason) Invoked by DispatchThreadScheduler to indicate that dispatch host should release threads if possible.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by