Back to index

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

List of all members.

Public Member Functions

def __init__
def poll
def close

Public Attributes

 send
 send_bytes
 recv
 recv_bytes
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes

 _out
 _in

Detailed Description

Definition at line 68 of file connection.py.


Constructor & Destructor Documentation

def multiprocessing.dummy.connection.Connection.__init__ (   self,
  _in,
  _out 
)

Definition at line 70 of file connection.py.

00070 
00071     def __init__(self, _in, _out):
00072         self._out = _out
00073         self._in = _in
00074         self.send = self.send_bytes = _out.put
00075         self.recv = self.recv_bytes = _in.get

Here is the caller graph for this function:


Member Function Documentation

Definition at line 86 of file connection.py.

00086 
00087     def close(self):
00088         pass

Here is the caller graph for this function:

def multiprocessing.dummy.connection.Connection.poll (   self,
  timeout = 0.0 
)

Definition at line 76 of file connection.py.

00076 
00077     def poll(self, timeout=0.0):
00078         if self._in.qsize() > 0:
00079             return True
00080         if timeout <= 0.0:
00081             return False
00082         self._in.not_empty.acquire()
00083         self._in.not_empty.wait(timeout)
00084         self._in.not_empty.release()
00085         return self._in.qsize() > 0

Here is the caller graph for this function:


Member Data Documentation

Definition at line 72 of file connection.py.

Definition at line 71 of file connection.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 74 of file connection.py.

Definition at line 74 of file connection.py.

Definition at line 73 of file connection.py.

Definition at line 73 of file connection.py.


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