Skip to content

Commit

Permalink
Merge pull request #16 from alexander-gridnev/master
Browse files Browse the repository at this point in the history
Updated change log for RWLock fix
  • Loading branch information
ajdavis committed Jan 27, 2016
2 parents 09b1815 + 4cf6a4f commit 0b171c1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@ Changelog

.. module:: toro

Changes in Version 1.1
----------------------

Bug fix in :class:`~toro.RWLock`: when max_readers > 1
:meth:`~toro.RWLock.release_read` must release one reader
in case :meth:`~toro.RWLock.acquire_read` was called at least once::

@gen.coroutine
def coro():
lock = toro.RWLock(max_readers=10)
assert not lock.locked()

yield lock.acquire_read()
lock.release_read()

But, in old version :meth:`~toro.RWLock.release_read` raises RuntimeException
if a lock in unlocked state, even if :meth:`~toro.RWLock.acquire_read`
was already called several times.


Changes in Version 1.0
----------------------

Expand Down

0 comments on commit 0b171c1

Please sign in to comment.