cyb70289 commented on a change in pull request #10719:
URL: https://github.com/apache/arrow/pull/10719#discussion_r669292380



##########
File path: cpp/src/arrow/testing/gtest_util.cc
##########
@@ -907,7 +910,7 @@ class GatingTask::Impl : public 
std::enable_shared_from_this<GatingTask::Impl> {
   double timeout_seconds_;
   Status status_;
   bool unlocked_;
-  int num_launched_ = 0;
+  std::atomic<int> num_launched_;

Review comment:
       Nit: since we don't care about memory order, I think we can change this 
line to
   `std::atomic<int> num_launched_{0}`, and leave all other codes untouched.




-- 
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]


Reply via email to