HyukjinKwon commented on code in PR #49070:
URL: https://github.com/apache/arrow/pull/49070#discussion_r2745589957


##########
cpp/src/arrow/csv/converter.h:
##########
@@ -57,6 +57,7 @@ class ARROW_EXPORT Converter {
   const ConvertOptions& options_;
   MemoryPool* pool_;
   std::shared_ptr<DataType> type_;
+  std::shared_ptr<void> trie_cache_;  // Opaque pointer to TrieCache

Review Comment:
   Just to confirm, I checked:
   
   > The destructor of shared_ptr decrements the number of shared owners of the 
control block. If that counter reaches zero, the control block calls the 
destructor of the managed object. The control block does not deallocate itself 
until the 
[std::weak_ptr](https://en.cppreference.com/w/cpp/memory/weak_ptr.html) counter 
reaches zero as well.
   
   https://en.cppreference.com/w/cpp/memory/shared_ptr.html



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