InterlockedIncrement function

drjackool 956 Reputation points
2023-05-31T16:16:14.9833333+00:00

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

Windows API - Win32
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
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful