SharedMemoryManager#

Shared memory array manager for parallel processing using ctype shared arrays in SharedMemoryArray.

clean()[source]#

Removes all references to the shared arrays.

free(handle)[source]#

Removes the array with given handle from the shared memory manager.

Arguments

handleint

Shared memory handle of the array.

get(handle)[source]#

Returns the array in the shared memory manager with given handle.

Arguments

handleint

Shared memory handle of the array.

Returns

arrayarray

The shared array with the specified handle.

insert(array)[source]#

Inserts the array in the shared memory manager.

Arguments

arrayarray

The array to insert into the shared memory manager.

Returns

handleint

The shared array handle.

zeros(shape, dtype=None, order=None)[source]#

Creates a shared zero array and inserts it into the shared memory manager.

Arguments

shapetuple

Shape of the array.

dtypedtype or None

The type of the array.

order‘C’, ‘F’, or None

The contiguous order of the array.

Returns

handleint

The handle to this array.