C# 클래스 GSF.Threading.ManagedThreads

Maintains a reference to all managed threads
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
Cancel ( GSF.Threading.ManagedThread item, bool allowAbort, object stateInfo ) : void

Removes a queued thread from thread pool if still queued, if allowAbort is True aborts the thread if executing (standard or queued)

비공개 메소드들

메소드 설명
Add ( GSF.Threading.ManagedThread item ) : void

Add an item to the active thread list

Typically only used by standard threads when user calls "Start"

ManagedThreads ( ) : System
Pop ( ) : GSF.Threading.ManagedThread

Removes first item from the queue and transfers the item to the active thread list

Queue ( GSF.Threading.ManagedThread item ) : void

Queue thread for processing

Typically only used by queued threads to add work items to the queue

Remove ( GSF.Threading.ManagedThread item ) : void

Remove completed thread from active thread list

ThreadStatusText ( GSF.Threading.ManagedThread item ) : string

메소드 상세

Cancel() 공개 정적인 메소드

Removes a queued thread from thread pool if still queued, if allowAbort is True aborts the thread if executing (standard or queued)
public static Cancel ( GSF.Threading.ManagedThread item, bool allowAbort, object stateInfo ) : void
item GSF.Threading.ManagedThread Thread to cancel
allowAbort bool Set to True to abort thread if executing
stateInfo object An object that contains application-specific information, such as state, which can be used by the thread being aborted.
리턴 void