Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
multiprocessing.synchronize.SemLock Class Reference
Inheritance diagram for multiprocessing.synchronize.SemLock:
Inheritance graph
Collaboration diagram for multiprocessing.synchronize.SemLock:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __enter__
def __exit__
def __getstate__
def __setstate__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Member Functions

def _make_methods

Private Attributes


Detailed Description

Definition at line 72 of file

Constructor & Destructor Documentation

def multiprocessing.synchronize.SemLock.__init__ (   self,

Definition at line 74 of file

00075     def __init__(self, kind, value, maxvalue):
00076         sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
00077         debug('created semlock with handle %s' % sl.handle)
00078         self._make_methods()
00080         if sys.platform != 'win32':
00081             def _after_fork(obj):
00082                 obj._semlock._after_fork()
00083             register_after_fork(self, _after_fork)

Here is the caller graph for this function:

Member Function Documentation

Definition at line 88 of file

00089     def __enter__(self):
00090         return self._semlock.__enter__()

Definition at line 91 of file

00092     def __exit__(self, *args):
00093         return self._semlock.__exit__(*args)

Here is the caller graph for this function:

Definition at line 94 of file

00095     def __getstate__(self):
00096         assert_spawning(self)
00097         sl = self._semlock
00098         return (Popen.duplicate_for_child(sl.handle), sl.kind, sl.maxvalue)

Here is the call graph for this function:

Definition at line 99 of file

00100     def __setstate__(self, state):
00101         self._semlock = _multiprocessing.SemLock._rebuild(*state)
00102         debug('recreated blocker with handle %r' % state[0])
00103         self._make_methods()
00105 #
00106 # Semaphore
00107 #

Here is the call graph for this function:

Definition at line 84 of file

00085     def _make_methods(self):
00086         self.acquire = self._semlock.acquire
00087         self.release = self._semlock.release

Here is the caller graph for this function:

Member Data Documentation

Definition at line 75 of file

Definition at line 85 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 86 of file

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