MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / ~FileDescriptorTable

Method ~FileDescriptorTable

src/filesystem/file_descriptor.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 : table_{}, open_count_(0), lock_{"fd_table"} {}
13
14FileDescriptorTable::~FileDescriptorTable() {
15 CloseAll().or_else([](auto&& err) {
16 klog::Warn("Failed to close all files in destructor: {}", err.message());
17 return Expected<void>{};
18 });
19}
20
21FileDescriptorTable::FileDescriptorTable(FileDescriptorTable&& other)
22 : open_count_(other.open_count_), lock_{"fd_table"} {

Callers

nothing calls this directly

Calls 2

WarnFunction · 0.85
messageMethod · 0.80

Tested by

no test coverage detected