Back to index

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

List of all members.

Public Member Functions

def __init__
def __enter__
def __exit__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

A context manager that does an ordered acquire of Future conditions.

Definition at line 137 of file

Constructor & Destructor Documentation

Definition at line 140 of file

00141     def __init__(self, futures):
00142         self.futures = sorted(futures, key=id)

Here is the caller graph for this function:

Member Function Documentation

Definition at line 143 of file

00144     def __enter__(self):
00145         for future in self.futures:
00146             future._condition.acquire()

Definition at line 147 of file

00148     def __exit__(self, *args):
00149         for future in self.futures:
00150             future._condition.release()

Here is the caller graph for this function:

Member Data Documentation

Definition at line 141 of file

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: