On 4/12/06, Thomas Chust <[EMAIL PROTECTED]> wrote:
> On Wed, 12 Apr 2006, Graham Fawcett wrote:
>
> > The mailbox egg does not work on my 2.3 build: it deadlocks on
> > mailbox-wait! if the mailbox is empty. [...]
>
> I think this is not a bug, but rather a desired behaviour. When you
> execute mailbox-receive! and the message queue is empty, the calling
> thread suspends. But as there are no other threads running, the scheduler
> realizes that the calling thread will never become active again and thus
> signals a deadlock exception.

Aha! Thank you, Thomas, that makes sense.

Graham


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to