Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io-wakeup: Use file descriptors when calling select. #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 20, 2023

  1. io-wakeup: Use wait file descriptors for non file ports.

    Select only works for file ports or file descriptors, so pass in the
    appropriate file descriptor when not using a file port.
    
    * fibers/io-wakeup.scm (readable?, writable?): Take a port or fd.
    (try-ready): Take port-ready-fd, and use this when calling ready? if
    port is not a file port.
    (wait-until-port-readable-operation): Pass port-read-wait-fd to
    try-ready.
    (wait-until-port-writable-operation): Pass port-write-wait-fd to
    try-ready.
    Christopher Baines committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    4bd3621 View commit details
    Browse the repository at this point in the history