MCPcopy Create free account
hub / github.com/apache/arrow / ChildAfterFork

Method ChildAfterFork

cpp/src/arrow/util/thread_pool.cc:434–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 void ParentAfterFork() { mutex_.unlock(); }
433
434 void ChildAfterFork() {
435 int desired_capacity = desired_capacity_;
436 bool please_shutdown = please_shutdown_;
437 bool quick_shutdown = quick_shutdown_;
438 new (this) State; // force-reinitialize, including synchronization primitives
439 desired_capacity_ = desired_capacity;
440 please_shutdown_ = please_shutdown;
441 quick_shutdown_ = quick_shutdown;
442 }
443
444 std::shared_ptr<AtForkHandler> atfork_handler_;
445};

Callers 1

ThreadPoolMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected