Example #1
0
 public void Dispose(bool disposing)
 {
     lock (monitor) {
         if (mmap_addr != (IntPtr)(-1))
         {
             MemoryMappedFile.UnmapPosix(mmap_addr, mmap_size);
             mmap_addr = (IntPtr)(-1);
         }
     }
 }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     lock (monitor) {
         if (mmap_addr != (IntPtr)(-1))
         {
             MemoryMappedFile.UnmapPosix(mmap_addr, mmap_size);
             mmap_addr = (IntPtr)(-1);
         }
     }
 }