-
Notifications
You must be signed in to change notification settings - Fork 4
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
Wait on activity from the mirai task dispatcher? #108
Comments
From #107 (comment):
Shouldn't be too hard to set up a socket and create a condition variable on the host which the |
Actually, I think shikokuchuo/nanonext#17 could get us there. |
A first step is to implement a |
Depends on both shikokuchuo/nanonext#20 and shikokuchuo/nanonext#21. |
I added a new class in
|
In branch |
There's a lot of fiddling in #108 (comment), and I think it can be simpler. For controller groups, wait(mode = "all") is actually trivially easy: just call wait(mode = "all") on each controller in sequence. For wait(mode = "one"), things become really simple if the condition variable can be ephemeral: created inside the call to wait() and then automatically destroyed and cleaned up after the call ends. |
My workaround for shikokuchuo/nanonext#24 is to just loop over the controllers in the group and wait on their respective condition variables for |
Tomorrow I will work on a robust test suite for the
Expectations to check:
|
targets
is still polling-based because of howcrew
works, but it would be more efficient to wait on a condition variable while unresolved tasks are running. @shikokuchuo, is it currently possible for me to set up such a condition variable which watches for any dispatcher activity?The text was updated successfully, but these errors were encountered: