From: William Xu <william.xwl@gmail.com>
Subject: Re: recv! and thread
Date: Sat, 11 Mar 2006 03:41:57 +0800 [thread overview]
Message-ID: <87veumaxyy.fsf@www.williamxu.com> (raw)
In-Reply-To: <87d5gykm8l.fsf@zip.com.au> (Kevin Ryde's message of "Wed, 08 Mar 2006 07:56:10 +1100")
Kevin Ryde <user42@zip.com.au> writes:
> William Xu <william.xwl@gmail.com> 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.
oh... but it was cvs guile. I also tried with 1.8, still no luck,
though. :(
And you also don't have the slib problem? I guess it might be some
platform related issue then. (It's debian on an ibook here.)
> As a workaround in 1.6 I think you can stick in a select call
>
> (select (list sock) '() '())
>
> just before the recv!, to wait for sock to have data ready to read.
> (When select blocks it cooperates with the multi-threading, letting
> other threads run.)
This workaround works nice. Thank you so much! i can continue my little
program again. :)
--
William
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
prev parent reply other threads:[~2006-03-10 19:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 5:01 recv! and thread William Xu
2006-03-03 23:44 ` Kevin Ryde
2006-03-04 2:11 ` William Xu
2006-03-07 20:56 ` Kevin Ryde
2006-03-10 19:41 ` William Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87veumaxyy.fsf@www.williamxu.com \
--to=william.xwl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).