(self)
Closes access to the shared memory from this instance but does
        not destroy the shared memory block.
Closes access to the shared memory from this instance but does
        not destroy the shared memory block.
Closes access to the shared memory from this instance but does not destroy the shared memory block .
def close(self):
        """Closes access to the shared memory from this instance but does
        not destroy the shared memory block."""
        if self._buf is not None:
            self._buf.release()
            self._buf = None
        if self._mmap is not None:
            self._mmap.close()
            self._mmap = None
        if _USE_POSIX and self._fd >= 0:
            os.close(self._fd)
            self._fd = -1
def close ( self ) : if self . _buf is not None : self . _buf . release ( ) self . _buf = None if self . _mmap is not None : self . _mmap . close ( ) self . _mmap = None if _USE_POSIX and self . _fd >= 0 : os . close ( self . _fd ) self . _fd = - 1