Thread

Overview

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard
    • elements.jar  Cooper
    • Elements.fx  Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Standard, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee
  • Mapped to:
    • System.Threading.Thread  .NET, .NET Standard
    • java.lang.Thread  Cooper
    • RemObjects.Elements.System.Thread  Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows
    • Foundation.NSThread  Toffee

 

constructor (not nullable Action) .NET, .NET Standard, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows

 

constructor(aEntrypoint: not nullable Action)

 

Thread(Action! aEntrypoint)

 

init(_ aEntrypoint: Action)

 

Thread(Action! aEntrypoint)

Parameters:

  • aEntrypoint:

constructor (not nullable Action<>) Toffee

 

init(_ aEntrypoint: () -> ())

Parameters:

  • aEntrypoint:

Abort  virtual

 

method Abort

 

void Abort()

 

func Abort()

 

void Abort()

Async (Action) .NET, .NET Standard, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows

 

class method Async(aBlock: Action)

 

static void Async(Action aBlock)

 

static func Async(_ aBlock: Action)

 

static void Async(Action aBlock)

Parameters:

  • aBlock:

Async (Action<>)  virtual Toffee

 

static func Async(_ aBlock: () -> ())

Parameters:

  • aBlock:

CallStack  virtual

 

property CallStack: List<String> read;

 

List<String> CallStack { get; }

 

var CallStack: List<String> { get{} }

 

List<String> CallStack { __get; }

CurrentCallStack  virtual

 

class property CurrentCallStack: not nullable ImmutableList<String> read;

 

class ImmutableList<String>! CurrentCallStack { get; }

 

static var CurrentCallStack: ImmutableList<String> { get{} }

 

class ImmutableList<String>! CurrentCallStack { __get; }

CurrentThread  virtual

 

class property CurrentThread: Thread read;

 

class Thread CurrentThread { get; }

 

static var CurrentThread: Thread { get{} }

 

class Thread CurrentThread { __get; }

IsAlive  virtual

 

property IsAlive: Boolean read;

 

Boolean IsAlive { get; }

 

var IsAlive: Boolean { get{} }

 

Boolean IsAlive { __get; }

Join  virtual .NET, .NET Standard, Cooper, Toffee

 

method Join

 

void Join()

 

func Join()

 

void Join()

Join (Int32)  virtual .NET, .NET Standard, Cooper, Toffee

 

method Join(Timeout: Int32)

 

void Join(Int32 Timeout)

 

func Join(_ Timeout: Int32)

 

void Join(Integer Timeout)

Parameters:

  • Timeout:

MainThread  virtual Toffee

 

static var MainThread: Thread { get{} }

Name  virtual

 

property Name: String read write;

 

String Name { get; set; }

 

var Name: String { get{} set{} }

 

String Name { __get; __set; }

Priority  virtual

 

property Priority: ThreadPriority read write;

 

ThreadPriority Priority { get; set; }

 

var Priority: ThreadPriority { get{} set{} }

 

ThreadPriority Priority { __get; __set; }

Sleep  virtual

 

class method Sleep(aTimeout: Int32)

 

static void Sleep(Int32 aTimeout)

 

static func Sleep(_ aTimeout: Int32)

 

static void Sleep(Integer aTimeout)

Parameters:

  • aTimeout:

Start  virtual

 

method Start

 

void Start()

 

func Start()

 

void Start()

ThreadId  virtual .NET, .NET Standard, Cooper, Toffee

 

property ThreadId: Int64 read;

 

Int64 ThreadId { get; }

 

// .NET, .NET Standard
var ThreadId: Int64 { get{} }
// Toffee
var ThreadId: IntPtr { get{} }

 

Int64 ThreadId { __get; }

 

CallStack  virtual

 

property CallStack: List<String> read;

 

List<String> CallStack { get; }

 

var CallStack: List<String> { get{} }

 

List<String> CallStack { __get; }

IsAlive  virtual

 

property IsAlive: Boolean read;

 

Boolean IsAlive { get; }

 

var IsAlive: Boolean { get{} }

 

Boolean IsAlive { __get; }

Name  virtual

 

property Name: String read write;

 

String Name { get; set; }

 

var Name: String { get{} set{} }

 

String Name { __get; __set; }

Priority  virtual

 

property Priority: ThreadPriority read write;

 

ThreadPriority Priority { get; set; }

 

var Priority: ThreadPriority { get{} set{} }

 

ThreadPriority Priority { __get; __set; }

ThreadId  virtual .NET, .NET Standard, Cooper, Toffee

 

property ThreadId: Int64 read;

 

Int64 ThreadId { get; }

 

// .NET, .NET Standard
var ThreadId: Int64 { get{} }
// Toffee
var ThreadId: IntPtr { get{} }

 

Int64 ThreadId { __get; }

CurrentCallStack  virtual

 

class property CurrentCallStack: not nullable ImmutableList<String> read;

 

class ImmutableList<String>! CurrentCallStack { get; }

 

static var CurrentCallStack: ImmutableList<String> { get{} }

 

class ImmutableList<String>! CurrentCallStack { __get; }

CurrentThread  virtual

 

class property CurrentThread: Thread read;

 

class Thread CurrentThread { get; }

 

static var CurrentThread: Thread { get{} }

 

class Thread CurrentThread { __get; }

MainThread  virtual Toffee

 

static var MainThread: Thread { get{} }

 

Async (Action) .NET, .NET Standard, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows

 

class method Async(aBlock: Action)

 

static void Async(Action aBlock)

 

static func Async(_ aBlock: Action)

 

static void Async(Action aBlock)

Parameters:

  • aBlock:

Async (Action<>)  virtual Toffee

 

static func Async(_ aBlock: () -> ())

Parameters:

  • aBlock:

Sleep  virtual

 

class method Sleep(aTimeout: Int32)

 

static void Sleep(Int32 aTimeout)

 

static func Sleep(_ aTimeout: Int32)

 

static void Sleep(Integer aTimeout)

Parameters:

  • aTimeout:

 

constructor (not nullable Action) .NET, .NET Standard, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows

 

constructor(aEntrypoint: not nullable Action)

 

Thread(Action! aEntrypoint)

 

init(_ aEntrypoint: Action)

 

Thread(Action! aEntrypoint)

Parameters:

  • aEntrypoint:

constructor (not nullable Action<>) Toffee

 

init(_ aEntrypoint: () -> ())

Parameters:

  • aEntrypoint:

Abort  virtual

 

method Abort

 

void Abort()

 

func Abort()

 

void Abort()

Join  virtual .NET, .NET Standard, Cooper, Toffee

 

method Join

 

void Join()

 

func Join()

 

void Join()

Join (Int32)  virtual .NET, .NET Standard, Cooper, Toffee

 

method Join(Timeout: Int32)

 

void Join(Int32 Timeout)

 

func Join(_ Timeout: Int32)

 

void Join(Integer Timeout)

Parameters:

  • Timeout:

Start  virtual

 

method Start

 

void Start()

 

func Start()

 

void Start()