
15 May
2004
15 May
'04
4:40 p.m.
Michael Glassford wrote:
I've just checked in changes to Win32 implementations of the mutex and recursive_mutex classes. They now use a Win32 critical section instead
MS critical section (current implementation) doesn't perform well if there is contention. They handoff ownership. You can build more efficient mutex (with all three lock/trylock/timedlock operations) using atomic swap/xchg and auto-reset event. It will work on 386 (no CAS required)... but I just can't stop scratching my head over mysterious lack of xchg.rel on Itanic (they only have xchg.acq). regards, alexander.