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

Provide hooks for message-listener callbacks #17

Open
ecpeterson opened this issue Nov 12, 2020 · 0 comments
Open

Provide hooks for message-listener callbacks #17

ecpeterson opened this issue Nov 12, 2020 · 0 comments

Comments

@ecpeterson
Copy link
Contributor

A lot of simulation processing power is spent on PROCESSes which are busy-waiting for the receipt for some message. This could be alleviated by providing a callback to the COURIER which is triggered when an appropriate message arrives.

This comes with several difficulties: a PROCESS has both passive listeners (as installed in its message dispatch table) which are selectively triggered (via their guards) as well as active listeners installed via commands. The longevity of either of these classes is questionable. Additionally, callbacks will have strange timing properties: what hardware-realistic value would time have when a callback is triggered? (Recently, there's also the added complication of peruse-inbox?.)

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

No branches or pull requests

1 participant