[
https://issues.apache.org/jira/browse/ARROW-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16415948#comment-16415948
]
Antoine Pitrou commented on ARROW-2359:
---------------------------------------
Did you encounter actual issues with this? {{shared_ptr}} is defined to use
thread-safe reference counting, and the singleton pattern used in
TYPE_FACTORY() is supposed to be thread-safe in C++11 (see
https://stackoverflow.com/questions/1661529/is-meyers-implementation-of-the-singleton-pattern-thread-safe
).
> Type objects produced by DataType factory are not thread safe
> -------------------------------------------------------------
>
> Key: ARROW-2359
> URL: https://issues.apache.org/jira/browse/ARROW-2359
> Project: Apache Arrow
> Issue Type: Task
> Components: C++
> Reporter: Anton Shmigirilov
> Priority: Minor
> Labels: pull-request-available
>
> TYPE_FACTORY() macro that produces type shortcuts (boolean(), int32(), utf8()
> and so on) uses static shared_ptr inside. There are race conditions possible
> against shared_ptr's reference counter.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)