chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Threads and tcp


From: Felix Winkelmann
Subject: Re: [Chicken-users] Threads and tcp
Date: Thu, 17 Jul 2003 08:19:53 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530

Peter Wang wrote:
Thanks for fixing the previous bug I reported, Felix.  I have another
one for you :-)

No problem. Bugs must be fixed.


The attached program is supposed to print "thread awake" at regular
intervals, but when tcp-accept accepts a connection (e.g. from "telnet
host 55555"), it seems that other threads stop running.  When you
connect a second time, only a single "thread awake" gets printed.

This is with chicken version 1 build 12.  By chance, I found that
version 1 build 0 doesn't seem to be affected, if that helps any.


In scheduler.scm, line 249 should read

    "timeout.tv_usec = tm % 1000;"

instead of

    "timeout.tv_usec = (tm % 1000) * 1000000;"

(I mixed up microseconds with nanoseconds)


cheers,
felix





reply via email to

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