The ThreadBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ThreadBase(String) | Initializes a new instance of the ThreadBase class |
![]() | ThreadBase(String, Boolean) | Initializes a new instance of the ThreadBase class |
![]() | ThreadBase(String, Dispatcher) | Initializes a new instance of the ThreadBase class |
![]() | ThreadBase(String, Dispatcher, Boolean) | Initializes a new instance of the ThreadBase class |
Methods
Name | Description | |
---|---|---|
![]() | Abort |
Notifies the thread to stop working.
|
![]() | AbortWaitForSeconds |
Notifies the thread to stop working and waits for completion for the given ammount of time.
When the thread soes not stop after the given timeout the thread will be terminated.
|
![]() | Dispatch(Action) |
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action.
|
![]() | Dispatch(Task) |
Dispatches the given task to the target Dispatcher (default: the main Dispatcher).
|
![]() | Dispatch<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>)) |
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given function.
|
![]() | DispatchAndWait(Action) |
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action.
This method will wait for the task completion.
|
![]() | DispatchAndWait(Task) |
Dispatches the given task to the target Dispatcher (default: the main Dispatcher).
This method will wait for the task completion.
|
![]() | DispatchAndWait(Action, Single) |
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action.
This method will wait for the task completion or the timeout.
|
![]() | DispatchAndWait(Task, Single) |
Dispatches the given task to the target Dispatcher (default: the main Dispatcher).
This method will wait for the task completion or the timeout.
|
![]() | DispatchAndWait<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>)) |
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given function.
This method will wait for the task completion and returns the return value.
|
![]() | DispatchAndWait<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>), Single) |
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given function.
This method will wait for the task completion or the timeout and returns the return value.
|
![]() | Dispose |
Disposes the thread and all resources.
|
![]() | Do | |
![]() | DoInternal | |
![]() | Exit |
Notifies the thread to stop working.
|
![]() | Start |
Starts the thread.
|
Extension Methods
Name | Description | |
---|---|---|
![]() | RunAsync(String, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
![]() | RunAsync(String, TaskDistributor, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
![]() | RunAsync<(Of <<'(T>)>>)(String, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
![]() | RunAsync<(Of <<'(T>)>>)(String, TaskDistributor, array<Object>[]()[][]) | Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.) |
Fields
Name | Description | |
---|---|---|
![]() | exitEvent | |
![]() | targetDispatcher | |
![]() | thread |
Properties
Name | Description | |
---|---|---|
![]() ![]() | CurrentThread |
Returns the currently ThreadBase instance which is running in this thread.
|
![]() | IsAlive |
Returns true if the thread is working.
|
![]() | ShouldStop |
Returns true if the thread should stop working.
|