Lines Matching defs:Name
29 std::string SharedMemoryRegion::Path(const char *Name) {
30 return DirPlusFile(TmpDir(), Name);
33 std::string SharedMemoryRegion::SemName(const char *Name, int Idx) {
34 std::string Res(Name);
51 bool SharedMemoryRegion::Create(const char *Name) {
52 int fd = open(Path(Name).c_str(), O_CREAT | O_RDWR, 0777);
58 sem_unlink(SemName(Name, i).c_str());
59 Semaphore[i] = sem_open(SemName(Name, i).c_str(), O_CREAT, 0644, 0);
67 bool SharedMemoryRegion::Open(const char *Name) {
68 int fd = open(Path(Name).c_str(), O_RDWR);
77 Semaphore[i] = sem_open(SemName(Name, i).c_str(), 0);
85 bool SharedMemoryRegion::Destroy(const char *Name) {
86 return 0 == unlink(Path(Name).c_str());