Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
multiprocessing.sharedctypes.SynchronizedArray Class Reference
Inheritance diagram for multiprocessing.sharedctypes.SynchronizedArray:
Inheritance graph
[legend]
Collaboration diagram for multiprocessing.sharedctypes.SynchronizedArray:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __len__
def __getitem__
def __setitem__
def __getslice__
def __setslice__
def __reduce__
def get_obj
def get_lock
def __repr__

Public Attributes

 acquire
 release
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 227 of file sharedctypes.py.


Member Function Documentation

Definition at line 232 of file sharedctypes.py.

00232 
00233     def __getitem__(self, i):
00234         self.acquire()
00235         try:
00236             return self._obj[i]
00237         finally:
00238             self.release()

Definition at line 246 of file sharedctypes.py.

00246 
00247     def __getslice__(self, start, stop):
00248         self.acquire()
00249         try:
00250             return self._obj[start:stop]
00251         finally:
00252             self.release()

Definition at line 229 of file sharedctypes.py.

00229 
00230     def __len__(self):
00231         return len(self._obj)

Definition at line 209 of file sharedctypes.py.

00209 
00210     def __reduce__(self):
00211         assert_spawning(self)
00212         return synchronized, (self._obj, self._lock)

Here is the call graph for this function:

Definition at line 219 of file sharedctypes.py.

00219 
00220     def __repr__(self):
00221         return '<%s wrapper for %s>' % (type(self).__name__, self._obj)
00222 

Definition at line 239 of file sharedctypes.py.

00239 
00240     def __setitem__(self, i, value):
00241         self.acquire()
00242         try:
00243             self._obj[i] = value
00244         finally:
00245             self.release()

def multiprocessing.sharedctypes.SynchronizedArray.__setslice__ (   self,
  start,
  stop,
  values 
)

Definition at line 253 of file sharedctypes.py.

00253 
00254     def __setslice__(self, start, stop, values):
00255         self.acquire()
00256         try:
00257             self._obj[start:stop] = values
00258         finally:
00259             self.release()
00260 

Definition at line 216 of file sharedctypes.py.

00216 
00217     def get_lock(self):
00218         return self._lock

Definition at line 213 of file sharedctypes.py.

00213 
00214     def get_obj(self):
00215         return self._obj


Member Data Documentation

Definition at line 206 of file sharedctypes.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 207 of file sharedctypes.py.


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