Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft - Multi-Threaded bindings #22

Open
LeonMatthesKDAB opened this issue Feb 2, 2022 · 1 comment
Open

Draft - Multi-Threaded bindings #22

LeonMatthesKDAB opened this issue Feb 2, 2022 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@LeonMatthesKDAB
Copy link
Contributor

Use Thread 1 with normal signal evaluation to mark a binding as dirty.

Then have all the dependent properties associated with a BindingEvaluator.
This binding evaluator would then be evaluated by Thread 2 (typically GUI Thread), so the evaluation actually happens on a separate thread.

For this to work the following would need to be thread-safe:

  1. Marking of a binding as dirty.
  2. Reading from a Property & updating the bindings internal cache
  3. Disconnecting/Connecting of Signals when creating a Binding
@LeonMatthesKDAB LeonMatthesKDAB added enhancement New feature or request question Further information is requested labels Apr 1, 2022
@LeonMatthesKDAB
Copy link
Contributor Author

As we now support #23 , maybe that helps this problem as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant