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

multithreading support #69

Closed
kshanik opened this issue Apr 7, 2024 · 4 comments
Closed

multithreading support #69

kshanik opened this issue Apr 7, 2024 · 4 comments

Comments

@kshanik
Copy link

kshanik commented Apr 7, 2024

Can we achieve following in KDBindings?

  1. signal in thread1 and slots in thread2
  2. can it support something Qt provides ? QueuedConnection or BlockingQueuedConnection connection types?

Basically wanted to check if KDBindings support multithreaded property binding evaluation?

@seanharmer
Copy link
Contributor

Hi. Yes this can be done with the ConnectionEvaluator as described at https://www.kdab.com/introducing-the-connectionevaluator-in-kdbindings/

We will also be adding a convenience around this to https://github.com/KDAB/KDUtils

@LeonMatthesKDAB
Copy link
Contributor

Hi @kshanik , as @seanharmer said, signals can be made thread-safe with the use of a ConnectionEvaluator. Blocking connections is also supported.

Your last question is whether property binding evaluation is thread-safe.
That is currently not the case. Is that a feature you need?

@MiKom
Copy link
Member

MiKom commented Jul 31, 2024

@kshanik The convenience around this in KDUtils landed in this commit: KDAB/KDUtils@9104992. Available on main branch.

@LeonMatthesKDAB
Copy link
Contributor

Closing this now as multi-threaded signals/slots are supported, and multi-threaded property binding is tracked in #22

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

No branches or pull requests

4 participants