helios.layouts.ipc_tools.SharedMemArrayManager

class helios.layouts.ipc_tools.SharedMemArrayManager(dimension, dtype, data=None, buffer_name=None, num_elements=None)[source]

Bases: helios.layouts.ipc_tools.GenericArrayBufferManager

An implementation of a GenericArrayBufferManager using SharedMemory

Parameters
  • dimension (int) – number of columns

  • dtype (str) – type of the ndarray

  • data (ndarray) – bi-dimensional array

  • buffer_name (str) – buffer_name, if you pass that, then this Obj. will try to load the memory resource

  • num_elements (int, optional) – In MacOs a shared memory resource can be created with a different number of elements then the original data

Methods

cleanup

create_mem_resource

create_repr

get_snapshot

load_mem_resource

update_snapshot

Attributes

data