Skip to content

Improve watchdog output loop and use QStrings - #8950

Merged
nbolton merged 2 commits into
masterfrom
win-cpu
Sep 12, 2025
Merged

Improve watchdog output loop and use QStrings#8950
nbolton merged 2 commits into
masterfrom
win-cpu

Conversation

@nbolton

@nbolton nbolton commented Sep 12, 2025

Copy link
Copy Markdown
Member

Fixes: #8946

  • Enhance error handling in the MSWindowsWatchdog output loop to reduce CPU usage during data waits
  • Refactor Windows error handling to use QString to fix message output bug

I ❤️ QString

Was returning only first char of error message (mild-mojibake)
Prevents high CPU usage while waiting for data (ERROR_NO_DATA)
@nbolton
nbolton requested a review from sithlord48 September 12, 2025 11:35
@sithlord48

Copy link
Copy Markdown
Member

Approve if you have checked this is fixing the bug for you.

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One day all our strings will be QStrings . Nice work !

@nbolton

nbolton commented Sep 12, 2025

Copy link
Copy Markdown
Member Author

Approve if you have checked this is fixing the bug for you.

I just want to double check, and now I'm not sure, I want to take another look.

Edit: Ah, I was running master. So, yes, confirmed fixed.

This was master:
image

And this is my PR:
image

@nbolton
nbolton marked this pull request as draft September 12, 2025 12:14
@nbolton
nbolton marked this pull request as ready for review September 12, 2025 12:17
@nbolton
nbolton merged commit 162cb85 into master Sep 12, 2025
32 of 33 checks passed
@nbolton
nbolton deleted the win-cpu branch September 12, 2025 12:17
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.

Daemon uses alot of cpu time, since 1.24.0

2 participants