Skip to content

Commit b956ba5

Browse files
committed
ARROW-15741: [Doc][Format] Clarify thread-safety of C stream interface
Closes apache#12647 from pitrou/ARROW-15741-stream-interface-thread-safety Authored-by: Antoine Pitrou <antoine@python.org> Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent 40d8e7e commit b956ba5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/source/format/CStreamInterface.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ Stream lifetime
154154
Lifetime of the C stream is managed using a release callback with similar
155155
usage as in the :ref:`C data interface <c-data-interface-released>`.
156156

157+
Thread safety
158+
-------------
159+
160+
The stream source is not assumed to be thread-safe. Consumers wanting to
161+
call ``get_next`` from several threads should ensure those calls are
162+
serialized.
157163

158164
C consumer example
159165
==================

0 commit comments

Comments
 (0)