Skip to content

Conversation

@derekbruening
Copy link
Contributor

@derekbruening derekbruening commented Aug 28, 2025

Adds a drmgr exit event which replaces the base DR event and provides priorities and user_data parameters.

The drmgr_exit() function could now become a nop (because drmgr must delay its clean up until after all client exit events), but to avoid crashes in legacy clients who themselves don't use drmgr but libraries they use do use drmgr, we have drmgr cleanup performed only after both drmgr_exit() reaches a 0 counter and the drmgr exit event has been called.
The drx_time_scale test is left not using drmgr as a test of this (it crashes without drmgr exit being delayed for both conditions).

drx_register_time_scaling() is now documented to require the user to use drmgr (otherwise the drmgr exit could be before the client's exit).

Uses the new user_data to clean up the global variable from the drx_timeout_scale test.

Updates all our samples and tests to use the drmgr event.

Adds a note to the minor compatibility change list as this will break user's builds, but has no binary compatibility consequence.

Issue: #7604

Adds a drmgr exit event which replaces the base DR event and provides
priorities and user_data parameters.

The drmgr_exit() function could now become a nop (because drmgr must
delay its clean up until *after* all client exit events), but to avoid
crashes in legacy clients who themselves don't use drmgr but libraries
they use do use drmgr, we have drmgr cleanup performed only after both
drmgr_exit() reaches a 0 counter and the drmgr exit event has been
called.

drx_register_time_scaling() is now documented to require the user to
use drmgr (otherwise the drmgr exit could be before the client's
exit).

Updates all our samples and tests to use the drmgr event.

Adds a note to the minor compatibility change list as this will break
user's builds, but has no binary compatibility consequence.

Issue: #7604
@derekbruening
Copy link
Contributor Author

This one should be merged by itself and so coordinated vs #7591

@derekbruening derekbruening merged commit dc06400 into master Aug 28, 2025
24 checks passed
@derekbruening derekbruening deleted the i7604-drmgr-exit-event branch August 28, 2025 21:40
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

Successfully merging this pull request may close these issues.

2 participants