Thanks for the review. I will make the suggested modifications. http://codereview.appspot.com/150055/diff/1/4 File Modules/_threadmodule.c (right): http://codereview.appspot.com/150055/diff/1/4#newcode221 ...
15 years, 2 months ago
(2009-11-07 15:06:51 UTC)
#2
Thanks for the review. I will make the suggested modifications.
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);
On 2009/11/07 07:48:05, gregory.p.smith wrote:
> This explicit (long) cast is unnecessary.
Right.
http://codereview.appspot.com/150055/diff/1/4#newcode246
Modules/_threadmodule.c:246: PyThread_release_lock(self->rlock_lock);
On 2009/11/07 07:48:05, gregory.p.smith wrote:
> reset self->rlock_owner to 0 before releasing the lock.
We always check rlock_count before rlock_owner anyway but, yes, I could reset
rlock_owner out of safety.
Issue 150055: [issue3001] RLock's are SLOW
Created 15 years, 2 months ago by gregory.p.smith
Modified 15 years, 2 months ago
Reviewers: Antoine Pitrou
Base URL: http://svn.python.org/view/*checkout*/python/branches/py3k/
Comments: 4