boostorg / thread

Boost.org thread module
http://boost.org/libs/thread
203 stars 162 forks source link

Fix sync_bounded_queue<>::size() #122

Closed vincenthsu closed 7 years ago

vincenthsu commented 7 years ago

I create a sync_bounded_queue with capacity 10 and then push 1 item into the queue. The size() functions will get 9, but it should be 1.

viboes commented 7 years ago

Thanks a lot for this fix. I really need to add more test :)