#include <pthread_monitor.hpp>
Public Member Functions | |
void | enqueue (void *) |
void * | dequeue () |
Unlike the bounded queue below, a monitor is a fully synchronised unbuffered transfer, mediated by a full handshake.
In particular, unlike the queue of size 1, the writer cannot proceed until the reader sends an acknowledge signal.
This logic matches that provides by schannels, but across an asynchronous boundary.