A free Windows-compatible Operating System - mirrored from GitHub
Find a file
Alex Ionescu 5ecb728b0e - Fix KiAcquireMutexContended, it was broken in contended cases.
- Inline Acquiring/Leaving guarded regions and the gmutex code, instead of going through 3-4 indirect calls.
- Add a mountain of ASSERTs to detect incorrect usage/state.
- Set ->SpecialApcDisable in the Guarded Mutex.
- Fix broken KTHREAD definition. SpecialApcDisable and KernelApcDisable were incorrectly marked as USHORT instead of SHORT, which could cause severe trouble under optimized builds (At least under MSVC, since MSVC wouldn't allow a negative number in an unsigned short).
- Use GM_LOCK_BIT_V.
- Fix broken KeTryToAcquireGuardedMutex prototype.
- Fix broken KGUARDED_MUTEX typedef and add bit values.
- Fix broken Interlocked* prototypes in regards to volatileness.

svn path=/trunk/; revision=23037
2006-07-13 04:20:18 +00:00
cis
irc Remove all curses except 'semprini'. 2006-06-26 16:39:23 +00:00
msvc6
os2
reactos - Fix KiAcquireMutexContended, it was broken in contended cases. 2006-07-13 04:20:18 +00:00
rosapps
rosky
vms