You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/02/08 02:12:13 UTC

[GitHub] [arrow] cyb70289 commented on a change in pull request #12358: ARROW-15593: [C++] Make after-fork ThreadPool reinitialization thread-safe

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



##########
File path: cpp/src/arrow/util/thread_pool.h
##########
@@ -373,7 +377,7 @@ class ARROW_EXPORT ThreadPool : public Executor {
   State* state_;
   bool shutdown_on_destroy_;
 #ifndef _WIN32
-  pid_t pid_;
+  std::atomic<pid_t> pid_;

Review comment:
       But the first load (line 239) may have data race with the store (line 256)?




-- 
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: github-unsubscribe@arrow.apache.org

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