C# Class System.Threading.SingleThreadedInvoker

An invoker which runs invoked delegates on a message queue processed by a single thread.
Inheritance: System.SafeDisposable, ISynchronizeInvoke
Afficher le fichier Open project: madelson/Emotiv-Experimenter Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
DisposeOfManagedResources ( ) : void

Stops the message loop

Private Methods

Méthode Description
DisposeOfMRE ( ManualResetEvent mre ) : void
EventLoop ( ) : void
GetMRE ( ) : ManualResetEvent

Method Details

BeginInvoke() public méthode

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

DisposeOfManagedResources() protected méthode

Stops the message loop
protected DisposeOfManagedResources ( ) : void
Résultat void

EndInvoke() public méthode

Returns when the asynchronous invokation represented by result completes
public EndInvoke ( IAsyncResult result ) : object
result IAsyncResult
Résultat object

Invoke() public méthode

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

SingleThreadedInvoker() public méthode

Construct an invoker with its own background thread
public SingleThreadedInvoker ( ) : System
Résultat System