dragon.mpbridge.sharedctypes.DragonRawArray

class DragonRawArray

Bases: Array

A ctype raw array co-located on the same node by default as the creating process

__init__(typecode_or_type, size_or_initializer, ctx: None = None, raw: bool = True)

Initialize the mpbridge RawArray object. :param typecode_or_type: the typecode or type is returned from the dictionary, typecode_to_type :type typecode_or_type: str or ctypes, required :param size_or_initializer: the array for the object :type size_or_initializer: range, int, list, required :param raw: bool, optional :type raw: sets whether lock is used or not

Methods

__init__(typecode_or_type, size_or_initializer)

Initialize the mpbridge RawArray object.

acquire()

Acquire the internal lock object

release()

Release the internal lock object

Attributes

raw

value

__init__(typecode_or_type, size_or_initializer, ctx: None = None, raw: bool = True)

Initialize the mpbridge RawArray object. :param typecode_or_type: the typecode or type is returned from the dictionary, typecode_to_type :type typecode_or_type: str or ctypes, required :param size_or_initializer: the array for the object :type size_or_initializer: range, int, list, required :param raw: bool, optional :type raw: sets whether lock is used or not

__getitem__(pos)
__len__()
__setitem__(pos, arr)
acquire()

Acquire the internal lock object

property raw
release()

Release the internal lock object

property value