Back to index

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

List of all members.

Public Member Functions

def __init__
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

Private Attributes

 _obj
 _lock

Detailed Description

Definition at line 201 of file sharedctypes.py.


Constructor & Destructor Documentation

def multiprocessing.sharedctypes.SynchronizedBase.__init__ (   self,
  obj,
  lock = None 
)

Definition at line 203 of file sharedctypes.py.

00203 
00204     def __init__(self, obj, lock=None):
00205         self._obj = obj
00206         self._lock = lock or RLock()
00207         self.acquire = self._lock.acquire
00208         self.release = self._lock.release

Here is the caller graph for this function:


Member Function Documentation

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 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 205 of file sharedctypes.py.

Definition at line 204 of file sharedctypes.py.

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: