You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/09 16:14:48 UTC

[GitHub] [pulsar] Matt-Esch commented on pull request #15508: [fix][c++ client] avoid race condition causing double callback on close

Matt-Esch commented on PR #15508:
URL: https://github.com/apache/pulsar/pull/15508#issuecomment-1121303435

   Are we guaranteed that `--(*numberOfOpenHandlers) == 0` is atomic if the underlying data type isn't atomic? The fix I have put in place allows the decrement race but still only one thread can win due to the lock.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org