Multithreading Multi-Threaded Programming
Multithreading Multi-Threaded Programming
Multithreading Multi-Threaded Programming
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
More Interlocked Functions<br />
} InterlockedIncrement<br />
} InterlockedIncrement( PLONG Addend );<br />
} InterlockedDecrement<br />
} InterlockedDecrement( PLONG Addend );<br />
} InterlockedExchange returns the current value of *Target and<br />
sets *Target to Value.<br />
} LONG InterlockedExchange ( LPLONG Target, LONG Value)<br />
} InterlockedExchangeAdd adds the second value to the first.<br />
} LONG InterlockedExchangeAdd ( PLONG Addend, LONG<br />
Increment)<br />
} InterlockedCompareExchange is similar to<br />
InterlockedExchange except that the exchange is done only if a<br />
comparison is satisfied.<br />
} PVOID InterlockedCompareExchange ( PVOID *Destination, PVOID<br />
Exchange, PVOID Comparand)<br />
56<br />
Advanced Windows Network <strong>Programming</strong><br />
11/11/12