MCPcopy Create free account
hub / github.com/catboost/catboost / ShmOpen

Method ShmOpen

library/cpp/netliba/v12/posix_shared_memory.h:188–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 }
187
188 bool ShmOpen(const TGUID& guid, const int flags) {
189 Fd = shm_open(ConvertGuidToName(guid).c_str(), flags, 0666);
190 if (Fd < 0) {
191 Y_DEBUG_ABORT_UNLESS(false, "errno = %d (%s)", errno, strerror(errno));
192 Fd = INVALID_HANDLE_VALUE;
193 Guid = TGUID();
194 return false;
195 }
196 Guid = guid;
197 return true;
198 }
199
200 bool Mmap(const size_t size) {
201 int flags = MAP_SHARED;

Callers

nothing calls this directly

Calls 2

TGUIDClass · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected