This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
csce313-mp4pinie64backup/BoundedBuffer.cpp
Eric Buxkemper 8735d45f39 v3
2015-11-06 11:30:46 -06:00

21 lines
No EOL
335 B
C++
Executable file

void BoundedBuffer::push(string item){
/* if(there is some empty slot){//data.size < b
data.push_back(item);
}else{
wait();
}
*/ //replace with
empty.P();
data.push_back(item);
full.V();//increment the number of full slots now.
}
void BoundedBuffer::pop(){
}