On Thu Nov 30 09:54:57 2023 +0000, Rémi Bernon wrote:
I'm not completely sure why I used a timer here, it's perhaps only historical from a time where we tried to use rtkit (which can't work). It'd probably be better to re-apply the current priority when unix_tid is set.
If I am not mistaken unix_tid should always be set currently on both the init_first_thread and init_thread requests (and set_thread_info can only be used with an already fully initialized thread). Later on the mach port right to the target process is also needed, but the tracing mechanism is already initialized at that point in time. I guess https://gitlab.winehq.org/wine/wine/-/merge_requests/4551/diffs?commit_id=02... can be just dropped then, unless I am overlooking something here.