C# Класс Monobjc.Foundation.NSThread

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
MakeMultiThreaded ( ) : void
WrapState ( Object obj ) : NSValue

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

Описание методов

BeginInvoke() публичный Метод

Queues the action to the thread and returns immediately.
public BeginInvoke ( System.Action action ) : void
action System.Action Action to invoke.
Результат void

BeginInvoke() публичный Метод

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.
Результат void

BeginInvoke() публичный Метод

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.
Результат void

Invoke() публичный Метод

Invokes the action on the thread and blocks until it completes.
public Invoke ( System.Action action ) : void
action System.Action Action to invoke.
Результат void

Invoke() публичный Метод

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.
Результат void

Invoke() публичный Метод

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.
Результат void

StartNewThread() публичный статический Метод

Asynchronously invokes the action on a new thread and returns immediately.
public static StartNewThread ( System.Action action ) : void
action System.Action Action to invoke.
Результат void

StartNewThread() публичный статический Метод

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.
Результат void

StartNewThread() публичный статический Метод

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.
Результат void