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

thread_get_message(+Queue, ?Message)

Wait for and remove a message from Queue
A DTR-thread or DTR-queue handle or alias
Message term, possibly partially instantiated


Waits until Queue contains an entry that unifies with Message, then removes and unifies this message with Message.

Essentially equivalent to record_wait_remove/3.

Modes and Determinism

See Also

record_wait_remove / 3, message_queue_create / 2