MCPcopy Create free account
hub / github.com/Niko1221/Strata / close

Method close

engine/src/core/conversation_file.cpp:254–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 return false;
253 }
254 bool close() {
255 if (h_ == INVALID_HANDLE_VALUE) return true;
256 const bool ok = CloseHandle(h_) != 0;
257 if (!ok) { const DWORD c_ = GetLastError(); kind_ = win_kind(c_); error_ = last_error(c_); }
258 h_ = INVALID_HANDLE_VALUE;
259 return ok;
260 }
261 const std::string& error() const { return error_; }
262 bool missing() const { return missing_; }
263 SessionError kind() const { return kind_; }

Callers 1

finishMethod · 0.45

Calls 4

win_kindFunction · 0.85
last_errorFunction · 0.85
errno_kindFunction · 0.85
closeFunction · 0.50

Tested by

no test coverage detected