Replace busy waiting for command to complete with a callback. #47

Open
opened 2023-04-10 10:51:49 -04:00 by That-One-Nerd · 1 comment
That-One-Nerd commented 2023-04-10 10:51:49 -04:00 (Migrated from github.com)

Currently, the shell executes commands on a separate background thread and busy waits until completion. This wastes CPU cycles and can be improved by adding a callback to the background worker's completion.

Currently, the shell executes commands on a separate background thread and busy waits until completion. This wastes CPU cycles and can be improved by adding a callback to the background worker's completion.
That-One-Nerd commented 2023-04-18 08:38:09 -04:00 (Migrated from github.com)

This is currently delayed because for one, the current system actually uses far less processing than I expected and using a callback would require a bunch of asynchronous joining which I don't like on a good day.

This is currently delayed because for one, the current system actually uses far less processing than I expected and using a callback would require a bunch of asynchronous joining which I don't like on a good day.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: That-One-Nerd/SrcMod#47
No description provided.