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

I/O event system #12

Open
sandwichdoge opened this issue Sep 9, 2020 · 1 comment
Open

I/O event system #12

sandwichdoge opened this issue Sep 9, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@sandwichdoge
Copy link
Owner

sandwichdoge commented Sep 9, 2020

Need to design an I/O event system, so that when a task waits for an I/O event (disk read, keyboard, etc.), it gets put in the wait queue until I/O procedure is finished and the task will be signaled to continue.

@sandwichdoge sandwichdoge added the enhancement New feature or request label Sep 9, 2020
@sandwichdoge
Copy link
Owner Author

Typical usage:

while (!event) {
  task_yield()
}

event here could be keyboard presses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant