chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Re: Question about mailbox egg


From: Timothy Beyer
Subject: [Chicken-users] Re: Question about mailbox egg
Date: Mon, 23 Nov 2009 01:28:26 -0800
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (Sanjō) APEL/10.6 MULE XEmacs/21.4 (patch 21) (Educational Television) (i386--freebsd)

At Sat, 21 Nov 2009 14:20:12 +0100,
Peter Bex wrote:
> 
> On Sat, Nov 21, 2009 at 01:42:01AM -0800, Timothy Beyer wrote:
> > Dear Chicken Users List,
> > 
> > Instead of what I expected to see:
> > 
> > #<thread: primordial>: writing 33
> > #<thread: primordial>: reading 33
> > #<thread: primordial>: writing 44
> > #<thread: primordial>: reading 44 
> > #<thread: primordial>: writing 55
> > #<thread: primordial>: reading 55
> > #<thread: primordial>: writing hello
> > #<thread: primordial>: reading hello
> 
> You would never see exactly this. The consumer is another thread, not
> the primordial one.
> 
My mistake, I meant to write thread1 for all usages of "#<thread: ... reading 
...."

> > Is there any easy way to get this behavior?
> 
> Try calling (thread-yield!) after writing.
That gives me the output I noted above. (well, not exactly, as you pointed out) 
 Thanks.


> You really should upgrade to Chicken 4 :)
> 

Agreed.  I just haven't done so yet because of a few large third party chicken 
applications that I use.

Thanks!

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]