concurrency


A buffer is used for communication between objects which run in different threads. A buffer wraps some shared memory or a unique pointer thereto. The buffer may be accessed by the two communication partners via reference to the buffer which is initialized via constructor argument. A buffer is a single […]

fsb: fully synchronous buffer





Object-oriented semaphores are not part of the C++ standard at this point. However, it is possible to implement a semaphore class using a mutex and a condition variable both of which where added to the standard in C++11.

Semaphore


C++11 has a beautiful thread class. In C++03 you can either use boost, or create your own wrapper for the thread calls of your OS. This example shows how it is done.

thread