No need to read/write a data member in one thread if it is atomic.
Replace QMetaObject::invokeMethod with atomic operations #127
pull hebasto wants to merge 1 commits into bitcoin-core:master from hebasto:201102-queued changing 2 files +6 −9-
hebasto commented at 1:29 PM on November 2, 2020: member
-
qt: Replace QMetaObject::invokeMethod with atomic operations 6501bb3bdc
- hebasto force-pushed on Nov 7, 2020
- hebasto renamed this:
Replace QMetaObject::invokeMethod with Mutex locking
Replace QMetaObject::invokeMethod with atomic operations
on Nov 7, 2020 -
promag commented at 8:53 AM on November 12, 2020: contributor
This doesn't work:
setProcessingQueuedTransactionsneeds to be enqueued and proceed in between transaction notifications. -
hebasto commented at 8:57 AM on November 12, 2020: member
This doesn't work:
setProcessingQueuedTransactionsneeds to be enqueued and proceed in between transaction notifications.Why?
-
promag commented at 9:00 AM on November 12, 2020: contributor
Transaction notifications are enqueued in
TransactionNotification::invokeand by the time they are processedsetProcessingQueuedTransactions(false)was already called. -
hebasto commented at 9:22 AM on November 12, 2020: member
You mean that
setProcessingQueuedTransactionsmust be placed into the same event queue asupdateTransaction, i.e., coordinated? - hebasto closed this on Nov 12, 2020
- bitcoin-core locked this on Feb 15, 2022