|
Boost Users : |
Subject: Re: [Boost-users] bounded_buffer, Checking if full
From: Igor R (boost.lists_at_[hidden])
Date: 2010-06-29 10:09:55
> Â I am using a bounded_buffer to solve a producer consumer problem. When the
> producer produces more data than the buffer can hold, how can I know that
> the buffer is full?or does it throw some exception when trying to push more
> data to it? I have gone through the documentation, but could not find a way...
If you mean "Bounded buffer example"
(http://www.boost.org/doc/libs/1_43_0/libs/circular_buffer/doc/circular_buffer.html#boundedbuffer)
it just blocks the producer's thread, when the buffer is full -- until
the consumer consumes some data.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net