[issue3001] RLock's are SLOW
Gregory P. Smith
report at bugs.python.org
Sat Nov 7 08:48:08 CET 2009
Gregory P. Smith <greg at krypto.org> added the comment:
Reviewers: ,
http://codereview.appspot.com/150055/diff/1/4
File Modules/_threadmodule.c (right):
http://codereview.appspot.com/150055/diff/1/4#newcode221
Modules/_threadmodule.c:221: return PyBool_FromLong((long) r);
This explicit (long) cast is unnecessary.
http://codereview.appspot.com/150055/diff/1/4#newcode246
Modules/_threadmodule.c:246: PyThread_release_lock(self->rlock_lock);
reset self->rlock_owner to 0 before releasing the lock.
Description:
code review for http://bugs.python.org/issue3001
Please review this at http://codereview.appspot.com/150055
Affected files:
M Lib/test/test_threading.py
M Lib/threading.py
M Modules/_threadmodule.c
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3001>
_______________________________________
More information about the Python-bugs-list
mailing list