Message158713
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) |
|
Date |
User |
Action |
Args |
2012-04-19 10:26:52 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, loewis, pitrou, tim.golden, brian.curtin, python-dev, sbt |
2012-04-19 10:26:52 | kristjan.jonsson | set | messageid: <1334831212.38.0.0763932225169.issue11618@psf.upfronthosting.co.za> |
2012-04-19 10:26:51 | kristjan.jonsson | link | issue11618 messages |
2012-04-19 10:26:51 | kristjan.jonsson | create | |
|