|
|
|
|
|
by dmitrygr
798 days ago
|
|
Very cool, but i imagine it'll hit a number of fun bugs randomly, with code like: // Reimplemented
LONG WINAPI CORKEL32_InterlockedCompareExchange(LONG *dest, LONG xchg, LONG compare)
{
LONG temp = *dest;
Trace(TRACE_FORCE_DONT_PRINT, "InterlockedCompareExchange");
if (compare == *dest) {
*dest = xchg;
}
return temp;
}
Not very interlocked at all :) |
|