Reputation: 307
is there any kind of semaphore for processes in Windows API? I found this one
but it is only for thread as I understood, thanks in advance for any help
Upvotes: 3
Views: 7393
Reputation: 980
Use CreateSemaphore or CreateSemaphoreEx to create a named semaphore. You can use the name to access the semaphore from other locations by calling CreateSemaphore
a second time.
Upvotes: 0
Reputation: 615
Look at the the help for CreateSemaphore() function: http://msdn.microsoft.com/en-us/library/ms682438(v=VS.85).aspx in the Remarks section, starting from "Multiple processes can handles....".
You'll find 3 cases there - all of them useful.
Upvotes: 3