Can we drop Wait() from NativeBackendGnome? |
|||
Issue descriptionMethods like NativeBackendGnome::AddLogin currently run on the background thread, then post a task for the GnomeKeyring glue to the main thread and use a WaitableEvent to block the background thread until the response from main arrives. Is there a reason this needs to be synchronous, or can we split AddLogin into the part before and after the post to the main thread, and pass the second part as a callback to the task on the main thread? cfroussios@ and dvadym@, you have both worked on this code at some point, what is your opinion?
,
Jul 7 2017
All of GnomeKeyring, Libsecret and dbus (which we use for KWallet) have async variants for calls. I'm not aware why they were not used initially. Today, my argument would be that it's not worth the effort to refactor the backends and that we should work on deprecating them, removing the issue altogether.
,
Jul 7 2017
Thanks both of you for the helpful input. I agree that refactoring all of this to get rid of the Wait() call would be lost time, which we can better invest towards removing the backends altogether. I'll close this as Wontfix, and use the bug as a documentation of the decision in the code.
,
Jul 7 2017
,
Jul 7 2017
For additional reference, the backend deprecation is tracked under bug 571003.
,
Nov 29
|
|||
►
Sign in to add a comment |
|||
Comment 1 by dvadym@chromium.org
, Jul 7 2017