C# 클래스 System.Threading.SingleThreadedInvoker

An invoker which runs invoked delegates on a message queue processed by a single thread.
상속: System.SafeDisposable, ISynchronizeInvoke
파일 보기 프로젝트 열기: madelson/Emotiv-Experimenter 1 사용 예제들

공개 메소드들

메소드 설명
BeginInvoke ( Delegate method, object args ) : IAsyncResult

Queue the delegate to be invoked on this invoker's thread

EndInvoke ( IAsyncResult result ) : object

Returns when the asynchronous invokation represented by result completes

Invoke ( Delegate method, object args ) : object

Invokes the delegate on this invoker's thread and returns upon completion

SingleThreadedInvoker ( ) : System

Construct an invoker with its own background thread

보호된 메소드들

메소드 설명
DisposeOfManagedResources ( ) : void

Stops the message loop

비공개 메소드들

메소드 설명
DisposeOfMRE ( ManualResetEvent mre ) : void
EventLoop ( ) : void
GetMRE ( ) : ManualResetEvent

메소드 상세

BeginInvoke() 공개 메소드

Queue the delegate to be invoked on this invoker's thread
public BeginInvoke ( Delegate method, object args ) : IAsyncResult
method System.Delegate
args object
리턴 IAsyncResult

DisposeOfManagedResources() 보호된 메소드

Stops the message loop
protected DisposeOfManagedResources ( ) : void
리턴 void

EndInvoke() 공개 메소드

Returns when the asynchronous invokation represented by result completes
public EndInvoke ( IAsyncResult result ) : object
result IAsyncResult
리턴 object

Invoke() 공개 메소드

Invokes the delegate on this invoker's thread and returns upon completion
public Invoke ( Delegate method, object args ) : object
method System.Delegate
args object
리턴 object

SingleThreadedInvoker() 공개 메소드

Construct an invoker with its own background thread
public SingleThreadedInvoker ( ) : System
리턴 System