[New-bugs-announce] [issue29303] asyncio.Lock.acquire() does not always yield

anonymous2017 report at bugs.python.org
Tue Jan 17 18:26:15 EST 2017


New submission from anonymous2017:

Details here: http://stackoverflow.com/questions/41708609/unfair-scheduling-bad-lock-optimization-in-asyncio-event-loop

Essentially there should be a `yield` before this line otherwise a coroutine that only acquires and releases a lock will never yield to other coroutines.

----------
components: asyncio
messages: 285688
nosy: anonymous2017, gvanrossum, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.Lock.acquire() does not always yield
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29303>
_______________________________________


More information about the New-bugs-announce mailing list