Skip to content
Back to top
View this page

# SharedMemory

class dsviper.SharedMemory

  Bases: `object`

  A class used to represent a shared memory region.

  Note: Not directly instantiable.

  address() → int

    Return the address.

  static create(name: str, size: int) → SharedMemory

    Create a shared memory segment.

  static exists(name: str) → bool

    Return True is the name exist.

  fd() → int

    Return the file descriptor.

  name() → str

    Return the name.

  static open(name: str, size: int) → SharedMemory

    Open an exising shared memory segment.

  size() → int

    Return the size.

  static unlink(name: str) → bool

    Unlink the shared memory object.