Semaphore
suggest changeVersions
[{“Name”:“C++11”,“GroupName”:null},{“Name”:“c++11”,“GroupName”:null}]
Introduction
Semaphores are not available in C++ as of now, but can easily be implemented with a mutex and a condition variable.
This example was taken from:
http://stackoverflow.com/questions/4792449/c0x-has-no-semaphores-how-to-synchronize-threads
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents