Generic Atomic Object API:

Module shared_atomic.atomic_object_backend

class shared_atomic.atomic_object_backend.array2d

2 dimensional array to contain the result of array operations for shared memory

:attributes

buf: memoryview of the array

__init__(self, x: int, y: int, itemsize: int, signed: bool = True, iterable: Iterable = None)

transform of unsigned integer to signed integer,

param x:

first dimension

param y:

second dimension

param itemsize:

size of each integer element

param signed:

whether the integer element is signed

param iterable:

initializing value in Iterable object

return:

array2d object

shared_atomic.atomic_object_backend.atomic_object_remove(name: bytes) int

deallocate the atomic_object except the shared_dict and atomic_shared_memory, which are based on file name.

param name:

name of the atomic_object

return:

0 if successful