mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-28 19:06:39 -05:00
checkpoint
This commit is contained in:
parent
c96bac9cb8
commit
8e83821f32
5 changed files with 139 additions and 8 deletions
|
|
@ -13,13 +13,14 @@ public:
|
|||
explicit
|
||||
BoundedQueue(std::size_t max_size_,
|
||||
bool block_ = true)
|
||||
: _block(block),
|
||||
: _block(block_),
|
||||
_max_size(max_size_)
|
||||
{
|
||||
if(_max_size == 0)
|
||||
_max_size = 1;
|
||||
}
|
||||
|
||||
BoundedQueue(const BoundedQueue&) = delete;
|
||||
BoundedQueue(BoundedQueue&&) = default;
|
||||
|
||||
bool
|
||||
push(const T& item_)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue