startover / pythonfutures

Automatically exported from code.google.com/p/pythonfutures
Other
0 stars 0 forks source link

Race condition in concurrent.futures / http://bugs.python.org/issue14406 #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

flist = [executor.submit(...) for x in ...]
futures.wait(flist)

What is the expected output? What do you see instead?

the wait call should return, but it doesn't do that.

What version of the product are you using? On what operating system?

futures-2.1.2

Please provide any additional information below.

see http://bugs.python.org/issue14406

Original issue reported on code.google.com by schmir@gmail.com on 20 Aug 2012 at 12:48

GoogleCodeExporter commented 9 years ago
see for a fix: 
https://github.com/schmir/pythonfutures/commit/baa0c9e75be7cf38fa4e5ed2c6709def0
9d4857e

it doesn't use a Lock, like the fix applied in python 3.2/3.3

Original comment by schmir@gmail.com on 20 Aug 2012 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by Dema...@gmail.com on 25 Aug 2012 at 7:13