6 SharedMem::SharedMem(long size)
8 shmid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0777);
10 perror("SharedMem::SharedMem");
13 data = (char*)shmat(shmid, 0, 0);
14 shmctl(shmid, IPC_RMID, 0);
20 SharedMem::SharedMem(int id, long size)
24 data = (char*)shmat(shmid, 0, 0);
29 SharedMem::~SharedMem()
37 int SharedMem::get_id()
42 long SharedMem::get_size()