This PR is more to show the intended functionality rather than an official request to merge. Code needs to be refactored, but for now I am asking for feedback.
Essentially, the functionality proposed allows the user to register events, where user data is also supplied when the callback function is triggered. More specifically, the PR does this for the drmgr_register_thread_init_event
API function.
The proposed functionality would avoid the need to have, say a tls index stored globally, and therefore may allow instantiations of the same component to hook thread init events with different storage locations.
Ideally, the ability to register user supplied data is available for all callbacks associated with generic events, but since this requires some code changes, I am asking for feedback, and whether this functionality is of any use?
Thanks!