#ifndef _BoundedBuffer_h_ #define _BoundedBuffer_h_ #include "Semaphore.h" class BoundedBuffer{ public: BoundedBuffer(int size); void put(int itm); int get(); protected: Semaphore *mutex, *full, *empty; int n,i,j; int *a; }; #endif // _BoundedBuffer_h_