[gambit-list] Is long poll for activity on external file descriptors without Gambit reading data currently doable, and if so, how?
Christian Jaeger
christian at pflanze.mine.nu
Wed Sep 3 07:08:49 EDT 2008
Christian Jaeger wrote:
> Wait, I think I get what you want: you want to block your Gambit thread
> just as in a read or write operation but not actually carry out any read
> or write, correct? Just kind of peek-char that doesn't read into a
> buffer etc.; or basically, you want that this blocks until there is data
> to be read or there is the possibility to write data (pardon my shell
> syntax):
>
> ({read,write}-subu8vector (u8vector) 0 0 port)
>
> That's a question for Marc I guess.
>
Ok it didn't let me calm so... check out:
http://scheme.mine.nu/gambit/experimental/wait-for-io/
(git clone http://scheme.mine.nu/gambit/experimental/wait-for-io/.git)
Christian.
More information about the Gambit-list
mailing list