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

Dispatcher #26

Open
iivdam opened this issue Oct 11, 2024 · 2 comments
Open

Dispatcher #26

iivdam opened this issue Oct 11, 2024 · 2 comments

Comments

@iivdam
Copy link

iivdam commented Oct 11, 2024

Hi,
Feature idea when DataStorm is moved into Ice:
add an dispatcher api to DataStorm so you can select your own thread for executing the upcalls like
Side question: in Ice it is not allowed to use synchronous calls from within the dispatch call, can this be changed in the new Ice version?
Regards
Emko

@bernardnormier
Copy link
Member

We reworked the terminology for Ice 3.8:

in Ice it is not allowed to use synchronous calls from within the dispatch call, can this be changed in the new Ice version?

(this is about execute with the new terminology).

As explained in the note, if your custom executor makes blocking calls - in particular other invocations - you can easily self-deadlock.

Ice 3.8 will introduce a dispatch pipeline which may be more appropriate than custom executors for your use-case... it depends very much on what you want to do.

add an dispatcher api to DataStorm so you can select your own thread for executing the upcalls

Which DataStorm upcalls are you referring to?

Thanks,
Bernard

@iivdam
Copy link
Author

iivdam commented Oct 11, 2024

Thanks Bernard,

Which DataStorm upcalls are you referring to?

The callbacks which are registered with onConnectedWriters, onSamples etc,

Our software (legacy) is based on a single 'application message-loop' and all async events (timers/received messages) are synchronous handled in the message-loop. For a demo (replacement current middleware stack) i use the dispatch registration as in doc to redirect incoming Ice requests to the application message-loop. It would be welcome if the registered DataStorm callbacks (onConnectedWriters etc) can also in a generic way be redirected to the application message-loop.

regards,
Emko

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

2 participants