Back to index

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

List of all members.

Public Member Functions

def __init__
def __getstate__
def __setstate__
def __init__

Public Attributes

 size
 name
 buffer
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes

 _state

Static Private Attributes

tuple _counter = itertools.count()

Detailed Description

Definition at line 57 of file heap.py.


Constructor & Destructor Documentation

def multiprocessing.heap.Arena.__init__ (   self,
  size 
)

Definition at line 61 of file heap.py.

00061 
00062         def __init__(self, size):
00063             self.size = size
00064             self.name = 'pym-%d-%d' % (os.getpid(), next(Arena._counter))
00065             self.buffer = mmap.mmap(-1, self.size, tagname=self.name)
00066             assert win32.GetLastError() == 0, 'tagname already in use'
00067             self._state = (self.size, self.name)

Here is the caller graph for this function:

def multiprocessing.heap.Arena.__init__ (   self,
  size 
)

Definition at line 81 of file heap.py.

00081 
00082         def __init__(self, size):
00083             self.buffer = mmap.mmap(-1, size)
00084             self.size = size
00085             self.name = None
00086 
00087 #
00088 # Class allowing allocation of chunks of memory from arenas
00089 #

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

Definition at line 68 of file heap.py.

00068 
00069         def __getstate__(self):
00070             assert_spawning(self)
00071             return self._state

Here is the call graph for this function:

def multiprocessing.heap.Arena.__setstate__ (   self,
  state 
)

Definition at line 72 of file heap.py.

00072 
00073         def __setstate__(self, state):
00074             self.size, self.name = self._state = state
00075             self.buffer = mmap.mmap(-1, self.size, tagname=self.name)
00076             assert win32.GetLastError() == win32.ERROR_ALREADY_EXISTS
00077 
00078 else:
00079 
    class Arena(object):

Member Data Documentation

Definition at line 59 of file heap.py.

Definition at line 66 of file heap.py.

Definition at line 64 of file heap.py.

Definition at line 63 of file heap.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 62 of file heap.py.


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