Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
concurrent.futures._base._AsCompletedWaiter Class Reference
Inheritance diagram for concurrent.futures._base._AsCompletedWaiter:
Inheritance graph
[legend]
Collaboration diagram for concurrent.futures._base._AsCompletedWaiter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def add_result
def add_exception
def add_cancelled

Public Attributes

 lock
 event
 finished_futures
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Used by as_completed().

Definition at line 72 of file _base.py.


Constructor & Destructor Documentation

Reimplemented from concurrent.futures._base._Waiter.

Definition at line 75 of file _base.py.

00075 
00076     def __init__(self):
00077         super(_AsCompletedWaiter, self).__init__()
00078         self.lock = threading.Lock()

Here is the caller graph for this function:


Member Function Documentation

Reimplemented from concurrent.futures._base._Waiter.

Definition at line 89 of file _base.py.

00089 
00090     def add_cancelled(self, future):
00091         with self.lock:
00092             super(_AsCompletedWaiter, self).add_cancelled(future)
00093             self.event.set()

Reimplemented from concurrent.futures._base._Waiter.

Definition at line 84 of file _base.py.

00084 
00085     def add_exception(self, future):
00086         with self.lock:
00087             super(_AsCompletedWaiter, self).add_exception(future)
00088             self.event.set()

Reimplemented from concurrent.futures._base._Waiter.

Definition at line 79 of file _base.py.

00079 
00080     def add_result(self, future):
00081         with self.lock:
00082             super(_AsCompletedWaiter, self).add_result(future)
00083             self.event.set()


Member Data Documentation

Definition at line 60 of file _base.py.

Definition at line 61 of file _base.py.

Definition at line 77 of file _base.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


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