flx::pthread::monitor_t Class Reference

#include <pthread_monitor.hpp>

List of all members.

Public Member Functions

void enqueue (void *)
void * dequeue ()


Detailed Description

A monitor is a concurrent version of a channel. It matches up readers and writers in pairs, synchronising transfer of one datum.

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.


The documentation for this class was generated from the following file:
Generated on Fri Jun 8 02:03:49 2007 for Felix by  doxygen 1.5.2