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

Function WrapStream

cpp/src/arrow/device.h:135–139  ·  view source on GitHub ↗

@brief Wrap an existing device stream alongside a release function @param device_stream a pointer to the stream to wrap @param release_fn a function to call during destruction, `nullptr` or a no-op function can be passed to indicate ownership is maintained externally

Source from the content-addressed store, hash-verified

133 /// a no-op function can be passed to indicate ownership is maintained
134 /// externally
135 virtual Result<std::shared_ptr<Stream>> WrapStream(
136 void* ARROW_ARG_UNUSED(device_stream),
137 Stream::release_fn_t ARROW_ARG_UNUSED(release_fn)) {
138 return NULLPTR;
139 }
140
141 /// \brief EXPERIMENTAL: An object that provides event/stream sync primitives
142 class ARROW_EXPORT SyncEvent {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected