This is about EnterCriticalSection right? See TryEnterCriticalSection description. AFAIK it's implemented using system InterlockedCompareExchange function which is implemented via CMPXCHG.Originally Posted by cronodragon
In FastMM sources used CMPXCHG assembler instructions.
Bookmarks