Disconnecting a BlockingQueuedConnection
-
@KevNull I don't think anything special will happen. The slot is already being executed and you simply disconnect, so the slot will not be called again if the signal is emitted. disconnect() does not have any influence on the slot. Also disconnect() can only be called from another thread while the slot is still being executed as the connection is blocking. That means, the sender can only call disconnect if the slot has finished.
-
@jsulm said in Disconnecting a BlockingQueuedConnection:
That means, the sender can only call disconnect if the slot has finished.
This doesn't imply a third thread couldn't call
disconnect
, but that should not be a problem either, asdisconnect()
is thread-safe. -
@kshegunov "Also disconnect() can only be called from another thread while the slot is still being executed as the connection is blocking." :-)