C# Class Monobjc.Foundation.NSThread

Show file Open project: Monobjc/monobjc Class Usage Examples

Public Methods

Method 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

Method Description
MakeMultiThreaded ( ) : void
WrapState ( Object obj ) : NSValue

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

Method Details

BeginInvoke() public method

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

BeginInvoke() public method

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.
return void

BeginInvoke() public method

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.
return void

Invoke() public method

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

Invoke() public method

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.
return void

Invoke() public method

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.
return void

StartNewThread() public static method

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

StartNewThread() public static method

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.
return void

StartNewThread() public static method

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.
return void