C# 클래스 ImageGlass.ImageListView.QueuedBackgroundWorker

상속: System.ComponentModel.Component
파일 보기 프로젝트 열기: d2phap/ImageGlass 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddWork void
BuildWorkQueue void
ClearWorkQueue void
ClearWorkQueue void
CreateThreads void
GetWork int>.Utility.Tuple
IsWorkQueueEmpty bool
Run void
RunWorkerCompletedCallback void

공개 메소드들

메소드 설명
CancelAsync ( ) : void

Cancels all pending operations in all queues.

CancelAsync ( int priority ) : void

Cancels all pending operations in the given queue.

CancelAsync ( object argument ) : void

Cancels processing the item with the given key.

GetApartmentState ( ) : ApartmentState

Gets the apartment state of worker threads.

Pause ( ) : void

Pauses the worker.

QueuedBackgroundWorker ( ) : System

Initializes a new instance of the QueuedBackgroundWorker class.

Resume ( ) : void

Resumes processing pending operations in the work queue.

RunWorkerAsync ( ) : void

Starts processing a new background operation.

RunWorkerAsync ( object argument ) : void

Starts processing a new background operation.

RunWorkerAsync ( object argument, int priority ) : void

Starts processing a new background operation.

RunWorkerAsync ( object argument, int priority, bool single ) : void

Starts processing a new background operation.

SetApartmentState ( ApartmentState state ) : void

Sets the apartment state of worker threads. The apartment state cannot be changed after any work is added to the work queue.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources.

OnDoWork ( ImageGlass.ImageListView.QueuedWorkerDoWorkEventArgs e ) : void

Raises the DoWork event.

OnRunWorkerCompleted ( ImageGlass.ImageListView.QueuedWorkerCompletedEventArgs e ) : void

Raises the RunWorkerCompleted event.

비공개 메소드들

메소드 설명
AddWork ( object argument, int priority, bool single ) : void

Adds the operation to the work queue. This method must be called from inside a lock.

BuildWorkQueue ( ) : void

Rebuilds the work queue. This method must be called from inside a lock.

ClearWorkQueue ( ) : void

Clears all work queues. This method must be called from inside a lock.

ClearWorkQueue ( int priority ) : void

Clears the work queue with the given priority. This method must be called from inside a lock.

CreateThreads ( ) : void

Creates the thread array.

GetWork ( ) : int>.Utility.Tuple

Gets a pending operation from the work queue. This method must be called from inside a lock.

IsWorkQueueEmpty ( ) : bool

Determines if the work queue is empty. This method must be called from inside a lock.

Run ( ) : void

Used by the worker thread to process items.

RunWorkerCompletedCallback ( object arg ) : void

Used to call OnRunWorkerCompleted by the synchronization context.

메소드 상세

CancelAsync() 공개 메소드

Cancels all pending operations in all queues.
public CancelAsync ( ) : void
리턴 void

CancelAsync() 공개 메소드

Cancels all pending operations in the given queue.
public CancelAsync ( int priority ) : void
priority int A value between 0 and /// indicating the priority queue to cancel.
리턴 void

CancelAsync() 공개 메소드

Cancels processing the item with the given key.
public CancelAsync ( object argument ) : void
argument object The argument of an asynchronous operation.
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; /// false to release only unmanaged resources.
리턴 void

GetApartmentState() 공개 메소드

Gets the apartment state of worker threads.
public GetApartmentState ( ) : ApartmentState
리턴 ApartmentState

OnDoWork() 보호된 메소드

Raises the DoWork event.
protected OnDoWork ( ImageGlass.ImageListView.QueuedWorkerDoWorkEventArgs e ) : void
e ImageGlass.ImageListView.QueuedWorkerDoWorkEventArgs A that contains event data.
리턴 void

OnRunWorkerCompleted() 보호된 메소드

Raises the RunWorkerCompleted event.
protected OnRunWorkerCompleted ( ImageGlass.ImageListView.QueuedWorkerCompletedEventArgs e ) : void
e ImageGlass.ImageListView.QueuedWorkerCompletedEventArgs A that contains event data.
리턴 void

Pause() 공개 메소드

Pauses the worker.
public Pause ( ) : void
리턴 void

QueuedBackgroundWorker() 공개 메소드

Initializes a new instance of the QueuedBackgroundWorker class.
public QueuedBackgroundWorker ( ) : System
리턴 System

Resume() 공개 메소드

Resumes processing pending operations in the work queue.
public Resume ( ) : void
리턴 void

RunWorkerAsync() 공개 메소드

Starts processing a new background operation.
public RunWorkerAsync ( ) : void
리턴 void

RunWorkerAsync() 공개 메소드

Starts processing a new background operation.
public RunWorkerAsync ( object argument ) : void
argument object The argument of an asynchronous operation.
리턴 void

RunWorkerAsync() 공개 메소드

Starts processing a new background operation.
public RunWorkerAsync ( object argument, int priority ) : void
argument object The argument of an asynchronous operation.
priority int A value between 0 and indicating the priority of this item. /// An item with a higher priority will be processed before items with lower priority.
리턴 void

RunWorkerAsync() 공개 메소드

Starts processing a new background operation.
public RunWorkerAsync ( object argument, int priority, bool single ) : void
argument object The argument of an asynchronous operation.
priority int A value between 0 and indicating the priority of this item. /// An item with a higher priority will be processed before items with lower priority.
single bool true to run this operation without waiting for queued items; otherwise /// false to add this operatino to th queue.
리턴 void

SetApartmentState() 공개 메소드

Sets the apartment state of worker threads. The apartment state cannot be changed after any work is added to the work queue.
public SetApartmentState ( ApartmentState state ) : void
state ApartmentState The new state of worker threads.
리턴 void