Christian Wallukat wrote:
I have a problem with CriticalSection / InterlockIncrement / Decrement on WinXP (sorry for bother but maybe it is also important for us):
Try this ... add a call to Sleep(0) just before attempting to acquire the lock. That *may* produce better average performance.
-rick