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

thread_get_message(+Queue, ?Message)

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

Description

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