Re: recv! and thread

2006-03-10 Thread William Xu
Kevin Ryde <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: >> >> the original guile> prompt is gone > > I think it's just been printed over on the tty. Try typing something, > it should be still there :-). Does it work there? i have already tried that.. If it were other gene

Re: recv! and thread

2006-03-10 Thread Kevin Ryde
William Xu <[EMAIL PROTECTED]> writes: > > the original guile> prompt is gone I think it's just been printed over on the tty. Try typing something, it should be still there :-). ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailm

Re: recv! and thread

2006-03-10 Thread William Xu
Kevin Ryde <[EMAIL PROTECTED]> writes: > William Xu <[EMAIL PROTECTED]> writes: >> >> i have already tried that.. > > Oh, I see, in 1.6 it's a bare recv() call, it doesn't cooperate with > the multi-threading. Hmm. Not sure if it's easy to fix that, it > works in 1.8 because pthreads takes care

Re: recv! and thread

2006-03-07 Thread Kevin Ryde
William Xu <[EMAIL PROTECTED]> writes: > > i have already tried that.. Oh, I see, in 1.6 it's a bare recv() call, it doesn't cooperate with the multi-threading. Hmm. Not sure if it's easy to fix that, it works in 1.8 because pthreads takes care of all blocking. As a workaround in 1.6 I think yo

recv! and thread

2006-03-01 Thread William Xu
Hi people, I want to create a receiver thread for receiving incoming packets. While when the thread is created, seems it becomes the main thread? the original guile> prompt is gone. Here is what i did, (define receiver (lambda () (let ((sock (socket PF_INET SOCK_DGRAM 0)) (buf (