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
Collaboration diagram for multiprocessing.sharedctypes.SynchronizedBase:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __reduce__
def get_obj
def get_lock
def __repr__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes


Detailed Description

Definition at line 201 of file

Constructor & Destructor Documentation

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

Definition at line 203 of file

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

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

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

Definition at line 216 of file

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

Definition at line 213 of file

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

Member Data Documentation

Definition at line 205 of file

Definition at line 204 of file

Definition at line 206 of file

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

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