MCPcopy Create free account
hub / github.com/catboost/catboost / ~TSharedMemory

Method ~TSharedMemory

util/system/shmat.cpp:158–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158TSharedMemory::~TSharedMemory() {
159 if (Data) {
160 UnmapViewOfFile(Handle);
161 }
162
163 CloseHandle(Handle);
164}
165#else
166static key_t GetKey(const TGUID& id) {
167 i64 id64 = (ui64)(((ui64)id.dw[0] + (ui64)id.dw[2]) << 32) + (ui64)id.dw[1] + (ui64)id.dw[3];

Callers

nothing calls this directly

Calls 2

shmdtFunction · 0.85
shmctlFunction · 0.85

Tested by

no test coverage detected