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

Method OpenOutputStream

cpp/src/arrow/filesystem/test_util.cc:202–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200GatedMockFilesystem::~GatedMockFilesystem() = default;
201
202Result<std::shared_ptr<io::OutputStream>> GatedMockFilesystem::OpenOutputStream(
203 const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {
204 RETURN_NOT_OK(open_output_sem_.Acquire(1));
205 return MockFileSystem::OpenOutputStream(path, metadata);
206}
207
208Status GatedMockFilesystem::WaitForOpenOutputStream(uint32_t num_waiters) {
209 return open_output_sem_.WaitForWaiters(num_waiters);

Callers 2

TestOpenOutputStreamMethod · 0.45
test_util.ccFile · 0.45

Calls 1

AcquireMethod · 0.45

Tested by

no test coverage detected