diff options
author | Christopher Larson <chris_larson@mentor.com> | 2012-01-08 17:17:23 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-20 16:47:32 +0000 |
commit | 299fa3489b6c1ed0e7dc5df6c297639934db8edb (patch) | |
tree | df7c23513e89814c6f68cd35edfdb8132b1f8f09 /bitbake/lib/concurrent/futures/__init__.py | |
parent | 7a8e1ef418a437c5461d87b7fd230373f293bfc8 (diff) | |
download | poky-299fa3489b6c1ed0e7dc5df6c297639934db8edb.tar.gz |
Add dependency on the backported python 3.2 concurrent.futures
(Bitbake rev: 774f59f06e65a35df597aa77c0fa06ab66c46906)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/concurrent/futures/__init__.py')
-rw-r--r-- | bitbake/lib/concurrent/futures/__init__.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bitbake/lib/concurrent/futures/__init__.py b/bitbake/lib/concurrent/futures/__init__.py new file mode 100644 index 0000000000..b5231f8aab --- /dev/null +++ b/bitbake/lib/concurrent/futures/__init__.py | |||
@@ -0,0 +1,18 @@ | |||
1 | # Copyright 2009 Brian Quinlan. All Rights Reserved. | ||
2 | # Licensed to PSF under a Contributor Agreement. | ||
3 | |||
4 | """Execute computations asynchronously using threads or processes.""" | ||
5 | |||
6 | __author__ = 'Brian Quinlan (brian@sweetapp.com)' | ||
7 | |||
8 | from concurrent.futures._base import (FIRST_COMPLETED, | ||
9 | FIRST_EXCEPTION, | ||
10 | ALL_COMPLETED, | ||
11 | CancelledError, | ||
12 | TimeoutError, | ||
13 | Future, | ||
14 | Executor, | ||
15 | wait, | ||
16 | as_completed) | ||
17 | from concurrent.futures.process import ProcessPoolExecutor | ||
18 | from concurrent.futures.thread import ThreadPoolExecutor | ||