Semaphore

suggest change

Versions

[{“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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents