Shared Memory

Shared memory with memory mapping

Classes:

Shmem(name, shape[, dtype, uuid])

Implementation of shared memory

class holoocean.shmem.Shmem(name, shape, dtype=<class 'numpy.float32'>, uuid='')

Implementation of shared memory

Parameters:
  • name (str) – Name the points to the beginning of the shared memory block

  • shape (int) – Shape of the memory block

  • dtype (type, optional) – data type of the shared memory. Defaults to np.float32

  • uuid (str, optional) – UUID of the memory block. Defaults to “”

Methods:

unlink()

unlinks the shared memory

unlinks the shared memory