The RWTPCValQueue Family of Classes
The
RWTPCValQueue class is one of a family of producer-consumer classes that includes thread-safe, synchronized, and buffered exchange of data. Each of the classes uses:
Read operations that block the calling thread if the underlying buffer is empty.
Write operations that block if the underlying buffer is full.
The maximum capacity of the buffer can be specified at the time of construction. The default is a buffer whose capacity is limited only by memory.