MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / reset

Method reset

lib/host/wasi/inode-linux.cpp:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137} // namespace
138
139void FdHolder::reset() noexcept {
140 if (likely(ok())) {
141 if (likely(!isSpecialFd(Fd))) {
142 ::close(Fd);
143 }
144 Fd = -1;
145 }
146}
147
148void TimerHolder::reset() noexcept {
149 if (likely(Id.has_value())) {

Callers

nothing calls this directly

Calls 4

isSpecialFdFunction · 0.70
likelyFunction · 0.50
has_valueMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected