[issue15038] Optimize python Locks on Windows

Benjamin Peterson report at bugs.python.org
Thu Jul 19 20:36:30 CEST 2012


Benjamin Peterson <benjamin at python.org> added the comment:

I see dead code here:

Py_LOCAL_INLINE(int)
PyCOND_BROADCAST(PyCOND_T *cv)
{
    if (cv->waiting > 0) {
        return ReleaseSemaphore(cv->sem, cv->waiting, NULL) ? 0 : -1;
		cv->waiting = 0;
    }
    return 0;
}

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list