Skip to content

Server-side thread priorities implementation (Part 1)

Marc-Aurel Zent requested to merge mzent/wine:thread-prios into master

This is the current proton thread priority implementation by @rbernon rebased for upstream with a few #ifdefs added since AFAIK Linux is the only operating system where threads have a unique PID which can be used to set niceness on.

I also ran ./tools/make_requests on mzent/wine@6705d348 as well and autoconf on mzent/wine@d7bafe40 (which does blow up the line count a bit). A few tiny changes (with the ready variable for example) are in anticipation for Part 2, which also adds Mach thread priorities and recalculates thread priorities on process priority change.

Since this is a rather large MR, I hope the split here is appropriate (with the second part being slightly smaller), but I think logically it makes the most sense here.

Edited by Marc-Aurel Zent

Merge request reports

Loading