dragon.mpbridge.sharedctypes.DragonValue
- class DragonValue
Bases:
Value
A ctype value co-located on the same node by default as the creating process
- __init__(*args, ctx: None = None, lock: Lock = True)
Initialize the mpbridge value 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 value: the value for the object :type value: int, optional :param m_uid: memory pool to create the channel in and message to write value and typecode_or_type in managed memory, defaults to _DEF_MUID :type m_uid: int, optional :param lock: dragon.native.lock.Lock, optional :type lock: creates lock for synchronization for value
Methods
__init__
(*args[, ctx, lock])Initialize the mpbridge value object.
acquire
()release
()Attributes
Get the current value.
- __init__(*args, ctx: None = None, lock: Lock = True)
Initialize the mpbridge value 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 value: the value for the object :type value: int, optional :param m_uid: memory pool to create the channel in and message to write value and typecode_or_type in managed memory, defaults to _DEF_MUID :type m_uid: int, optional :param lock: dragon.native.lock.Lock, optional :type lock: creates lock for synchronization for value
- acquire()
- release()
- item_type = None
- subclass_types = None
- tuple_type_list = None