dragon.mpbridge.heap

Dragon’s replacement for the Multiprocessing Heap based on Dragon managed memory. We effectively back multiprocessing.heap.Arena with Dragons managed memory. This is a single node only implementation.

Classes

DragonArena

Dragon's version of a file backed Arena uses the default managed memory pool to get a buffer.

class DragonArena

Bases: Arena

Dragon’s version of a file backed Arena uses the default managed memory pool to get a buffer. A custom m_uid can be given as well.

__init__(size: int, fd: int = -1, _m_uid: int = 4611686018427387904)

Initialize the DragonArena.

Parameters:
  • size (int) – size in bytes

  • fd (int, optional) – a dummy file descriptor, defaults to -1

  • _m_uid (int, optional) – memory pool m_uid, defaults to _DEF_MUID