Here is a Windows implmentation that works on Win95/NT/XP/CE/Whatever:
Here is a Linux implmentation that should compile and work fine on any system that suppots GCC, Pthreads and semaphores (e.g., `sem_post()):
My invention has bounded-time and does not starve writers or readers. It simply interleaves batched of reads with writes. Please study the algorithm. I think it would be a good candiate for incusion within TBB.
Chris M. Thomasson