pengwann.utils.allocate_shared_memory#
- utils.allocate_shared_memory(keys, data)#
Allocate one or more blocks of shared memory and populate them with numpy arrays.
- Parameters:
- Returns:
- memory_metadata
dictof {str2-lengthtupleoftupleofintand data-type} pairs. A dictionary containing metadata for each allocated block of shared memory. The keys are set by keys and the values are a tuple containing the shape and dtype of the corresponding array.
- memory_handles
listofSharedMemory A sequence of SharedMemory objects (returned to allow easy access to the
unlinkmethod).
- memory_metadata