Author kristjan.jonsson
Recipients brian.curtin, kristjan.jonsson, loewis, pitrou, python-dev, sbt, tim.golden
Date 2012-04-19.10:26:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334831212.38.0.0763932225169.issue11618@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a new patch.
This uses critical sections and condition variables to avoid kernel mode switches for locks. Windows mutexes are expensive and for uncontented locks, this offers a big win.

It also adds an internal set of critical section/condition variable structures, that can be used on windows to do other such things without resorting to explicit kernel objects.

This code works on XP and newer, since it relies on the "semaphore" kernel object being present.  In addition, if compiled to target Vista or greater, it will use the built-in critical section primitives and the  FRWLock objects (which are faster still than CriticalSection objects and more robust)
History
Date User Action Args
2012-04-19 10:26:52kristjan.jonssonsetrecipients: + kristjan.jonsson, loewis, pitrou, tim.golden, brian.curtin, python-dev, sbt
2012-04-19 10:26:52kristjan.jonssonsetmessageid: <1334831212.38.0.0763932225169.issue11618@psf.upfronthosting.co.za>
2012-04-19 10:26:51kristjan.jonssonlinkissue11618 messages
2012-04-19 10:26:51kristjan.jonssoncreate