Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
multiprocessing.heap.BufferWrapper Class Reference
Inheritance diagram for multiprocessing.heap.BufferWrapper:
Inheritance graph
Collaboration diagram for multiprocessing.heap.BufferWrapper:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def get_address
def get_size

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes


Static Private Attributes

tuple _heap = Heap()

Detailed Description

Definition at line 237 of file

Constructor & Destructor Documentation

def multiprocessing.heap.BufferWrapper.__init__ (   self,

Definition at line 241 of file

00242     def __init__(self, size):
00243         assert 0 <= size < sys.maxsize
00244         block = BufferWrapper._heap.malloc(size)
00245         self._state = (block, size)
00246         Finalize(self,, args=(block,))

Here is the caller graph for this function:

Member Function Documentation

Definition at line 247 of file

00248     def get_address(self):
00249         (arena, start, stop), size = self._state
00250         address, length = _multiprocessing.address_of_buffer(arena.buffer)
00251         assert size <= length
00252         return address + start

Definition at line 253 of file

00254     def get_size(self):
00255         return self._state[1]

Member Data Documentation

tuple multiprocessing.heap.BufferWrapper._heap = Heap() [static, private]

Definition at line 239 of file

Definition at line 244 of file

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

The documentation for this class was generated from the following file: