Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,412 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
in Win32
In multi threaded app if we have a global variable to increment and decrement it, from worker threads if we use InterlockedIncrement function, should also use Critical section lock or we do not need critical section lock?
Thanks
You don't need a CS to guard access the variable being altered via InterlockedIncrement and related APIs.