Page MenuHomePhorge

Get rid of spin-wait Promises
ClosedPublic

Authored by tusooa on May 1 2024, 8:41 PM.
Tags
None
Referenced Files
F113158: D12.1732400875.diff
Fri, Nov 22, 2:27 PM
F113156: D12.1732399996.diff
Fri, Nov 22, 2:13 PM
F113126: D12.1732385512.diff
Fri, Nov 22, 10:11 AM
F113125: D12.1732385477.diff
Fri, Nov 22, 10:11 AM
F113098: D12.1732381063.diff
Fri, Nov 22, 8:57 AM
Subscribers
None

Details

Summary

We have introduced the signal trigger version of QtPromise in
d2a3732e. However, this is reverted in bdaba786 because it fails to
handle the case where the QtPromise is constructed in another thread than
the one where the executor runs. We introduce the signal trigger again
here and resolved the above problem by constructing it without a parent,
and then moving it into the thread of the executor.

This significantly reduces the CPU usage and CPU temperature on tusooa's computer.

Type: add

Test Plan

Verify that you can send out an encrypted message.

Diff Detail

Repository
rK kazv
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.May 1 2024, 8:44 PM
Harbormaster failed remote builds in B23: Diff 32!

Use only relevant changes

Harbormaster returned this revision to the author for changes because remote builds failed.May 1 2024, 8:53 PM
Harbormaster failed remote builds in B25: Diff 34!
This revision was not accepted when it landed; it landed in state Changes Planned.May 2 2024, 3:26 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.

Despite my lack of familiarity with the code in question, it was able to compile and test and perform well on tusooa's computer, which I believe makes it an excellent revision

This revision is now accepted and ready to land.May 10 2024, 2:02 AM
This revision was automatically updated to reflect the committed changes.