[
https://issues.apache.org/jira/browse/ARROW-15741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495818#comment-17495818
]
David Li commented on ARROW-15741:
----------------------------------
I agree with Antoine, we shouldn't assume any thread safety. For instance, what
would it do if multiple consumers called it concurrently? Would they each just
get a random batch? And even if that's useful semantics, presumably some
synchronization would be done internally - at which point, why not just do the
synchronization externally?
> [Format] Clarify thread safety of C stream interface
> ----------------------------------------------------
>
> Key: ARROW-15741
> URL: https://issues.apache.org/jira/browse/ARROW-15741
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Format
> Reporter: Jorge Leitão
> Priority: Major
>
> The C stream interface has the method `get_next` that mutates the producer
> side.
> We do not mention whether there is some kind of thread safety associated to
> such interface. For example, can the interface be shared between two threads
> and both call get_next at the same time?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)