-
Notifications
You must be signed in to change notification settings - Fork 267
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
Replace QMetaObject::invokeMethod with atomic operations #127
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An atomic bool would be enough?
Didn't want to mess with this in #120 because I think ballon filtering doesn't belong in transaction model. IMO the right place should be aware of what wallets are open.
223dc9e
to
6501bb3
Compare
You're right. Reworked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work: setProcessingQueuedTransactions
needs to be enqueued and proceed in between transaction notifications.
Why? |
Transaction notifications are enqueued in |
You mean that |
@hebasto yes, |
No need to read/write a data member in one thread if it is atomic.