Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@T-X
Copy link
Owner

@T-X T-X commented Jul 26, 2024

This introduces the following, new two API functions:

sap_set_nonblocking()
sap_get_pollfd()

The former allows calling sap_run() without blocking. The latter allows getting a descriptor to check in one's own event handler loop for work for libsap, to notify to call sap_run().

TODO: Does something to provide a single descriptor for multiple events exist on Windows/MacOS/BSD, too? Or is this API unsuitable for portability?

This introduces the following, new two API functions:

  sap_set_nonblocking()
  sap_get_pollfd()

The former allows calling sap_run() without blocking. The latter
allows getting a descriptor to check in one's own event handler
loop for work for libsap, to notify to call sap_run().

TODO: Does something to provide a single descriptor for multiple
events exist on Windows/MacOS/BSD, too? Or is this API unsuitable for
portability?

Signed-off-by: Linus Lüssing <[email protected]>
@T-X T-X force-pushed the pr-single-threaded-nonblocking branch from 68e281d to b946e6d Compare July 28, 2024 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant