Skip to content

Conversation

TheZouave007
Copy link

The API of nob__proc_wait_async is improved by moving out sleeps into a different function. This supports checking all of the handles in a Nob_Procs structure without any delay.

The previous implementation will take 14 milliseconds to check to the 15th procedure in the Nob_Procs struct because each check would spend a millisecond either sleeping or timing out. By decoupling checking if a process is finished from sleeping, the API is improved and control is gained.

This also creates the function nob_sleep_nanos.

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