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

Method Close

cpp/src/arrow/util/io_util.cc:1033–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033Status FileDescriptor::Close() {
1034 int fd = fd_.exchange(-1);
1035 if (fd != -1) {
1036 return FileClose(fd);
1037 }
1038 return Status::OK();
1039}
1040
1041int FileDescriptor::Detach() { return fd_.exchange(-1); }
1042

Callers 12

TESTFunction · 0.45
TEST_PFunction · 0.45
FinishSubMethod · 0.45
FinishSubsMethod · 0.45
TESTFunction · 0.45
TouchFileFunction · 0.45
TEST_FFunction · 0.45
TearDownMethod · 0.45
TESTFunction · 0.45
WaitMethod · 0.45
ShutdownMethod · 0.45
ChildAfterForkMethod · 0.45

Calls 2

FileCloseFunction · 0.85
OKFunction · 0.50

Tested by 9

TESTFunction · 0.36
TEST_PFunction · 0.36
FinishSubMethod · 0.36
FinishSubsMethod · 0.36
TESTFunction · 0.36
TouchFileFunction · 0.36
TEST_FFunction · 0.36
TearDownMethod · 0.36
TESTFunction · 0.36