Click or drag to resize

Thread Class

Provides access to platform-specific threading. Not all platforms implement this as you can use System.Threading.Thread instead in most cases.
Inheritance Hierarchy

Namespace:  Eto.Threading
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public class Thread : Widget

The Thread type exposes the following members.

Constructors
  NameDescription
Public methodThread
Initializes a new instance of the Thread class for a specific ation
Top
Properties
  NameDescription
Public propertyStatic memberCurrentThread
Gets the current thread instance
Public propertyIsAlive
Gets a value indicating whether this thread is alive.
Public propertyIsMain
Gets a value indicating whether this thread instance is the main UI thread.
Public propertyStatic memberIsMainThread
Gets a value indicating if the current thread is the main UI thread.
Public propertyStatic memberMainThread
Gets the main thread.
Top
Methods
  NameDescription
Public methodAbort
Abort this instance, for custom thread instances
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.)
Protected methodOnExecuted
Called when the thread is executed, for custom thread instances
Public methodStart
Start the thread, for custom thread instances
Top
Remarks
Most platforms have a concept of threads, though some (e.g. WinRT) do not. This may be removed in a future version in favour of using Task.Run(), Task.Delay(), which works across all platforms on .net 4.5+ and PCL.
See Also