[ library(threads) | Reference Manual | Alphabetic Index ]

thread_self(?Thread)

True if Thread is the calling DTR-thread
Thread
A variable, DTR-thread alias or thread/engine handle

Description

If Thread is uninstantiated, it is unified with a thread/engine handle for the calling thread. If Thread is a DTR-thread alias or a thread/engine handle for the calling thread, the predicate succeeds, otherwise fails.

Apart from alias handling, this is the same as engine_self/1.

Modes and Determinism

See Also

engine_self / 1