Page MenuHomePhorge

Get rid of spin-wait Promises
ClosedPublic

Authored by tusooa on May 1 2024, 8:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 24, 9:48 PM
Unknown Object (File)
Tue, Jul 23, 3:39 AM
Unknown Object (File)
Tue, Jul 23, 3:39 AM
Unknown Object (File)
Tue, Jul 23, 3:38 AM
Unknown Object (File)
Tue, Jul 23, 3:38 AM
Unknown Object (File)
Tue, Jul 23, 3:38 AM
Unknown Object (File)
Tue, Jul 23, 3:38 AM
Unknown Object (File)
Tue, Jul 23, 1:03 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.