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

Not able to remove registration added with cps_api_event_thread_reg #91

Open
james-jra opened this issue Jun 28, 2018 · 1 comment
Open
Assignees

Comments

@james-jra
Copy link

Feature request

The Event Thread Utilities API allows an application to register a callback to be executed on a CPS event using the cps_api_event_thread_reg function.

However, it appears that there is no way to remove that registration without terminating the entire event thread with cps_api_event_thread_shutdown.
Therefore any registered callbacks must exist for the entire lifetime of the event thread. In most cases, this is equivalent to the lifetime of the application.

Is this analysis correct?

If so, is it possible to extend this API to allow an application to remove or un-register a callback against a CPS event?

This would allow an application to dynamically add or remove event handlers at will during the lifetime of the application.

@atanu-mandal
Copy link
Collaborator

Hi James,
Currently there is no option to un-register a callback function from the event in dynamic fashion. Your analysis is correct. We have an internal enhancement request as well to provide the facility in future release.

I will update you when the feature is available.

Thanks,
-Atanu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants