Message296604
| Author |
vstinner |
| Recipients |
pitrou, serhiy.storchaka, vstinner |
| Date |
2017年06月21日.23:53:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1498089218.85.0.7753392766.issue30727@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The bug occurs when notify(n) is called while less than n threads are waiting in cond.wait(): when some threads didn't reach cond.wait() yet. The synchronization code is very fragile and depends on time. The issue was worked again in the master banch by adding more _wait() calls...
To really fix the race condition, reliable synchronization primitives should be used, like threading.Event. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年06月21日 23:53:38 | vstinner | set | recipients:
+ vstinner, pitrou, serhiy.storchaka |
| 2017年06月21日 23:53:38 | vstinner | set | messageid: <1498089218.85.0.7753392766.issue30727@psf.upfronthosting.co.za> |
| 2017年06月21日 23:53:38 | vstinner | link | issue30727 messages |
| 2017年06月21日 23:53:38 | vstinner | create |
|