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

[ESI] [Cosim] DPI cosim Capnp server polling #2122

Open
teqdruid opened this issue Nov 9, 2021 · 0 comments
Open

[ESI] [Cosim] DPI cosim Capnp server polling #2122

teqdruid opened this issue Nov 9, 2021 · 0 comments
Labels

Comments

@teqdruid
Copy link
Contributor

teqdruid commented Nov 9, 2021

// TODO: Figure out how to do this properly, if possible.

Currently, the capnp DPI server polls for events in order to "listen" for the stop signal. I spent some time trying to get this working properly, but this hack is the best I could do. Ideally, the simulation thread would send a signal to the cosim capnp server through some libkj mechanism. Less ideally but better than what we've got, one would run the libkj event loop with a timeout.

More recently, libkj was documented: https://github.com/capnproto/capnproto/blob/master/kjdoc/tour.md
and a question was asked on how to run the event loop with a timeout: https://groups.google.com/g/capnproto/c/BU8olURJ6fE/m/Do117V12AQAJ?pli=1

@teqdruid teqdruid added the ESI label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant