C# Class Monobjc.Foundation.NSThread

Afficher le fichier Open project: Monobjc/monobjc Class Usage Examples

Méthodes publiques

Méthode Description
BeginInvoke ( System.Action action ) : void

Queues the action to the thread and returns immediately.

BeginInvoke ( Action actionWithId, Id arg ) : void

Queues the action to the thread and returns immediately.

BeginInvoke ( Action actionWithState, Object state ) : void

Queues the action to the thread and returns immediately.

Invoke ( System.Action action ) : void

Invokes the action on the thread and blocks until it completes.

Invoke ( Action actionWithId, Id arg ) : void

Invokes the action on the thread and blocks until it completes.

Invoke ( Action actionWithState, Object state ) : void

Invokes the action on the thread and blocks until it completes.

StartNewThread ( System.Action action ) : void

Asynchronously invokes the action on a new thread and returns immediately.

StartNewThread ( Action actionWithId, Id arg ) : void

Asynchronously invokes the action on a new thread and returns immediately.

StartNewThread ( Action actionWithState, Object state ) : void

Asynchronously invokes the action on a new thread and returns immediately.

Private Methods

Méthode Description
MakeMultiThreaded ( ) : void
WrapState ( Object obj ) : NSValue

Wraps a System.GCHandle for an object into a Monobjc.Foundation.NSValue instance.

Method Details

BeginInvoke() public méthode

Queues the action to the thread and returns immediately.
public BeginInvoke ( System.Action action ) : void
action System.Action Action to invoke.
Résultat void

BeginInvoke() public méthode

Queues the action to the thread and returns immediately.
public BeginInvoke ( Action actionWithId, Id arg ) : void
actionWithId Action The delegate that will be executed on the thread.
arg Id The single argument passed to the target. May be nil.
Résultat void

BeginInvoke() public méthode

Queues the action to the thread and returns immediately.
public BeginInvoke ( Action actionWithState, Object state ) : void
actionWithState Action The delegate that will be executed on the thread.
state Object The single argument passed to the target. May be nil.
Résultat void

Invoke() public méthode

Invokes the action on the thread and blocks until it completes.
public Invoke ( System.Action action ) : void
action System.Action Action to invoke.
Résultat void

Invoke() public méthode

Invokes the action on the thread and blocks until it completes.
public Invoke ( Action actionWithId, Id arg ) : void
actionWithId Action The delegate that will be executed on the thread.
arg Id The single argument passed to the target. May be nil.
Résultat void

Invoke() public méthode

Invokes the action on the thread and blocks until it completes.
public Invoke ( Action actionWithState, Object state ) : void
actionWithState Action The delegate that will be executed on the thread.
state Object The single argument passed to the target. May be nil.
Résultat void

StartNewThread() public static méthode

Asynchronously invokes the action on a new thread and returns immediately.
public static StartNewThread ( System.Action action ) : void
action System.Action Action to invoke.
Résultat void

StartNewThread() public static méthode

Asynchronously invokes the action on a new thread and returns immediately.
public static StartNewThread ( Action actionWithId, Id arg ) : void
actionWithId Action The delegate that will be executed on the new thread.
arg Id The single argument passed to the target. May be nil.
Résultat void

StartNewThread() public static méthode

Asynchronously invokes the action on a new thread and returns immediately.
public static StartNewThread ( Action actionWithState, Object state ) : void
actionWithState Action The delegate that will be executed on a new thread.
state Object The single argument passed to the target. May be nil.
Résultat void