shadow:standard

Singleton Thread:Current

Outer class

shadow:standard@Thread

Parent class

shadow:standard@Object

public singleton Current

Create Summary

Modifiers Return Types Method and Description
public () create()

Destroy Summary

Modifiers Return Types Method and Description
public () destroy()

Method Summary

Modifiers Return Types Method and Description
public readonly (Thread:Current) copy(AddressMap addresses)
public readonly locked (boolean) equal(nullable Thread other)

Checks whether the thread is the same as the current thread.

public readonly locked () sleep(int millisecondsTimeout)

Suspends the current running thread for milliseconds milliseconds.

public readonly locked () sleep(TimeSpan timeout)

Suspends the current running thread for the specified amount of time.

public readonly locked (boolean) yield()

Causes the current thread to yield execution to another thread.

Property Summary

Modifiers Return Types Method and Description
public readonly get locked (Thread) instance()
public readonly get locked (Thread) main()

Create Detail

create

public create() => ()

Destroy Detail

destroy

public destroy() => ()

Method Detail

copy

public readonly copy(AddressMap addresses) => (Thread:Current)

equal

public readonly locked equal(nullable Thread other) => (boolean)

Checks whether the thread is the same as the current thread.

Parameters

other - The thread to compare against the current thread.

Returns

true if the other thread is not null and is the current thread; otherwise, false.

sleep

public readonly locked sleep(int millisecondsTimeout) => ()

Suspends the current running thread for milliseconds milliseconds.

Parameters

millisecondsTimeout - The milliseconds to pause this thread for.

sleep

public readonly locked sleep(TimeSpan timeout) => ()

Suspends the current running thread for the specified amount of time.

Parameters

timeout - The amount of time to pause this thread for.

yield

public readonly locked yield() => (boolean)

Causes the current thread to yield execution to another thread.

Returns

true if the yield was successful; otherwise, false.

Property Detail

instance

public readonly get locked instance() => (Thread)

main

public readonly get locked main() => (Thread)