Error Cases
Error Cases
Error Cases
If there are terms on Queue_or_Alias thread_get_message/2 traverses Queue_or_Alias to obtain
the first term
that unifies with Message. If
exists,
the predicate returns with Message bound to the most general
unifier of Message and
. If there are no terms on Queue_or_Alias or if no terms unify with Message, the
calling thread suspends until at least one term is added to Queue_or_Alias. When the thread awakes, it will recheck Queue from its beginning for a term that unifies with Message.
Error Cases