fn drop(&mut self) {
        unsafe {
            // note: the success of allocate guarantees `shm_id != -1`.
            let r = shmctl(self.id, IPC_RMID, 0 as *mut shmid_ds);
            if r == -1 {
                // TODO: unlikely
                // This should never happen, but just in case:
                print_error("shmctl");
                panic!("freeing system V shared-memory failed");
            }
        }
    }
/// Deallocates the inter-process shared memory..
Deallocates the inter-process shared memory
Deallocates the inter - process shared memory
fn drop(&mut self) {
        unsafe {
            // note: the success of allocate guarantees `shm_id != -1`.
            let r = shmctl(self.id, IPC_RMID, 0 as *mut shmid_ds);
            if r == -1 {
                // TODO: unlikely
                // This should never happen, but just in case:
                print_error("shmctl");
                panic!("freeing system V shared-memory failed");
            }
        }
    }
fn drop ( & mut self ) { unsafe { // note: the success of allocate guarantees `shm_id != -1`. let r = shmctl ( self . id , IPC_RMID , 0 as * mut shmid_ds ) ; if r == - 1 { // TODO: unlikely // This should never happen, but just in case: print_error ( " " ) ; panic ! ( " " ) ; } } }
Deallocates the inter-process shared memory..
Deallocates the inter - process shared memory ..
&mut self
&mut self