BewareMyPower commented on code in PR #21:
URL: https://github.com/apache/pulsar-client-cpp/pull/21#discussion_r990911396
##########
lib/ConsumerImpl.h:
##########
@@ -159,7 +160,8 @@ class ConsumerImpl : public ConsumerImplBase,
ConsumerStatsBasePtr consumerStatsBasePtr_;
private:
- bool waitingForZeroQueueSizeMessage;
+ volatile bool waitingForZeroQueueSizeMessage;
Review Comment:
Did you want to use `volatile` for thread-safety? The `volatile` keyword in
C++ is much different from Java.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]