public singleton Current
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
create() |
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
destroy() |
Modifiers | Return Types | Method and Description |
---|---|---|
public readonly |
(Thread:Current) |
copy(AddressMap addresses) |
public readonly locked |
(boolean) |
equal(nullable Thread other) Checks whether the |
public readonly locked |
() |
sleep(int millisecondsTimeout) Suspends the current running thread for |
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. |
Modifiers | Return Types | Method and Description |
---|---|---|
public readonly get locked |
(Thread) |
instance() |
public readonly get locked |
(Thread) |
main() |
public create() => ()
public destroy() => ()
public readonly copy(AddressMap addresses) => (Thread:Current)
public readonly locked equal(nullable Thread other) => (boolean)
Checks whether the thread
is the same as the current thread.
other
- The thread to compare against the current thread.
true
if the other thread is not null and is the current thread; otherwise, false
.
public readonly locked sleep(int millisecondsTimeout) => ()
Suspends the current running thread for milliseconds
milliseconds.
millisecondsTimeout
- The milliseconds to pause this thread for.
public readonly locked sleep(TimeSpan timeout) => ()
Suspends the current running thread for the specified amount of time.
timeout
- The amount of time to pause this thread for.
public readonly locked yield() => (boolean)
Causes the current thread to yield execution to another thread.
true
if the yield was successful; otherwise, false
.