]> code.delx.au - offlineimap/commit
/offlineimap/head: changeset 314
authorjgoerzen <jgoerzen>
Mon, 6 Jan 2003 21:58:29 +0000 (22:58 +0100)
committerjgoerzen <jgoerzen>
Mon, 6 Jan 2003 21:58:29 +0000 (22:58 +0100)
commit9c761cddaddeec4a6f491ca4525f9474d98317be
tree4f7b7dc529fec7b6cd1c09f71469550c6d723d3b
parent510fa037d8a9c63bd1af89f39016fd88129aa677
/offlineimap/head: changeset 314

More locking updates. Introduced a new MultiLock to threadutil. This
lock will let a single thread acquire the same lock more than once,
keeping track of how many times this happens, and will release the
actual lock only when the lock's lock count gets back to zero. By
using MultiLock, various functions in Curses.py and Blinkenlights.py
no longer need to pass around to other functions a parameter
indicating whether or not a lock should be obtained. This was a large
cause of complexity and errors, which is now eliminated. Everything
seems to be working properly wrt locking at this point. The
Curses.Blinkenlights interface has achieved basic working
functionality.
offlineimap/head/offlineimap/threadutil.py
offlineimap/head/offlineimap/ui/Blinkenlights.py
offlineimap/head/offlineimap/ui/Curses.py
offlineimap/head/offlineimap/ui/debuglock.py