Pl_Buffer starts in a ready state

This commit is contained in:
Jay Berkenbilt 2018-03-06 11:24:30 -05:00
parent ee44aef8d0
commit 1a4dcb4aaf
3 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,7 @@
Pl_Buffer::Pl_Buffer(char const* identifier, Pipeline* next) :
Pipeline(identifier, next),
ready(false),
ready(true),
total_size(0)
{
}

View File

@ -63,6 +63,10 @@ int main()
{
throw std::logic_error("hand-created buffer is not as expected");
}
Pl_Buffer bp3("bp3");
b = bp3.getBuffer();
std::cout << "size: " << b->getSize() << std::endl;
}
catch (std::exception& e)
{

View File

@ -8,4 +8,5 @@ data: qwertyuiop
Pl_Buffer::getBuffer() called when not ready
size: 9
data: mooquack
size: 0
done