Skip to content

Commit 047fd9a

Browse files
author
Rafał Hibner
committed
Fix uninitialized atomics
1 parent 667218f commit 047fd9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/src/arrow/acero/pipe_node.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ class ARROW_ACERO_EXPORT Pipe {
110110
// backpressure
111111
std::unordered_map<PipeSource*, bool> paused_;
112112
std::mutex mutex_;
113-
std::atomic_size_t paused_count_;
113+
std::atomic_size_t paused_count_{0};
114114
std::unique_ptr<BackpressureControl> ctrl_;
115115
// stopProducing
116-
std::atomic_size_t stopped_count_;
116+
std::atomic_size_t stopped_count_{0};
117117
std::function<Status()> stopProducing_;
118118

119119
const bool pause_on_any_;

0 commit comments

Comments
 (0)