Re: Quick question about SRFI-170 directory-files
Marc Feeley 29 Jul 2019 19:04 UTC
> On Jul 29, 2019, at 2:57 PM, Lassi Kortela <xxxxxx@lassi.io> wrote:
>
> Does Gambit have a cooperative thread scheduler, and does this timeout handling tie into it?
Of course! I believe it was the initial motivation for doing it this way (for Gambit 4.0 circa 2007). The waiting on these ports goes through a “select” style mechanism that eventually calls “select” on Unix and “MsgWaitForMultipleObjects” on Windows. Even if there isn’t an actual file descriptor attached to the port the timeout is handled by select.
Marc