#include "semaphore.h" #include "BoundedBuffer.h" //#include "semaphore.h" //#include #include #include void BoundedBuffer::push(string item){ empty->P(); data.push_back(item); full->V();//increment the number of full slots now. } void BoundedBuffer::pop(){ full.P(); data.pop(item); empty.V(); }