On Fri Dec 1 17:22:55 2023 +0000, Nikolay Sivov wrote:
> @DarkShadow44, sorry for confusion, turns out it's not either -import or
> a forward. You can also simply have no forward and no -import, and it
> still does the right thing. Please update to remove forwarding to coml2.
Oh I see, I didn't know that was possible. Sorry for that, and thanks for your patience!
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4507#note_54601
This is the current proton thread priority implementation by @rbernon rebased for upstream with a few `#ifdef`s 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 https://gitlab.winehq.org/mzent/wine/-/commit/6705d3481be0409f7e971c1d2c7a3… as well and `autoconf` on https://gitlab.winehq.org/mzent/wine/-/commit/d7bafe40c411753662b2ad97148a6… (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.
--
v4: server: Check wineserver privileges on init with -20
server: Use setpriority to update thread niceness when safe.
ntdll: Set RLIMIT_NICE to its hard limit and inform the server.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4551
On Thu Nov 30 22:00:40 2023 +0000, Zebediah Figura wrote:
> This seems unrelated, and what's the motivation?
The motivation is the todo_wine ok(sample_duration == 460000) in the test. If has_duration is false, duration is uninitialized, and occasionally equal to 460000. Making the write conditional allows me to set duration to 1234 in the caller, which is guaranteed not equal to 10000 or 460000.
Unrelated, good point. I'll split it to a separate commit.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4449#note_54580
On Thu Nov 30 22:00:46 2023 +0000, Zebediah Figura wrote:
> I don't think you need the if (winetest_platform_is_wine) here.
Native doesn't rewind anything when the stream is switched to or from compressed mode.
I could remove it, and the ok(!callback->todo_rewind) below, but then we won't notice if someone fixes the rewinding and the todo_rewind stuff becomes unnecessary.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4449#note_54579
On Thu Nov 30 22:00:44 2023 +0000, Zebediah Figura wrote:
> "if (x) ok(0)" should almost always be "ok(!x)".
It does more than just ok(0). I did it like this to ensure that everything is in order except exactly one unexpected rewind.
Would you prefer if I just tell the tests to explicitly rewind the stream when changing compression mode? [As mentioned in wm_reader.c](https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/winegst…, no plausible program reconfigures streams dynamically anyways.
Always hard to know which tests are important, and which are safe to relax...
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4449#note_54578