[ library(threads) | Reference Manual | Alphabetic Index ]
True if Thread is the calling DTR-thread
- A variable, DTR-thread alias or thread/engine handle
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
- thread_self(-) is det
- thread_self(+) is semidet
engine_self / 1