Re: threads, queues, and make

Paulo Moura <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Hi Anne,

On 11/10/2013, at 08:04, Anne Ogborn <[email protected]> wrote:

> jan sez:
> 
> > message_queue_property/2 can be used for that.
> 
> Paulo sez:
> Yes but:
> 
> ?- message_queue_property(fdgfdsgdg, P).
> ERROR: message_queue_property/2: message_queue `fdgfdsgdg' does not exist
> 
> Annie sez:
> 
> 5 ?- message_queue_property(_, alias(logger_response_queue)).
> true.

That's a nice workaround with the rare property that allows us to eat the cake and keep it :-) It only works if a message queue alias is defined but I suspect that's the common case.

Cheers,

Paulo

-----------------------------------------------------------------
Paulo Moura
Logtalk developer

Email: <mailto:[email protected]>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.