Skip to content

Commit 3256ba1

Browse files
committed
Change waitingForZeroQueueSizeMessage type is atomic_bool.
1 parent 4a963d8 commit 3256ba1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ConsumerImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class ConsumerImpl : public ConsumerImplBase {
160160
ConsumerStatsBasePtr consumerStatsBasePtr_;
161161

162162
private:
163-
volatile bool waitingForZeroQueueSizeMessage;
163+
std::atomic_bool waitingForZeroQueueSizeMessage;
164164
std::shared_ptr<ConsumerImpl> get_shared_this_ptr();
165165
bool uncompressMessageIfNeeded(const ClientConnectionPtr& cnx, const proto::MessageIdData& messageIdData,
166166
const proto::MessageMetadata& metadata, SharedBuffer& payload,

0 commit comments

Comments
 (0)