mirror of
https://github.com/NixOS/nix.git
synced 2025-12-23 17:31:08 +01:00
Pool: Add clear() method
This commit is contained in:
parent
5694772794
commit
21a251be5f
1 changed files with 6 additions and 0 deletions
|
|
@ -211,6 +211,12 @@ public:
|
|||
left.push_back(p);
|
||||
std::swap(state_->idle, left);
|
||||
}
|
||||
|
||||
std::vector<ref<R>> clear()
|
||||
{
|
||||
auto state_(state.lock());
|
||||
return std::move(state_->idle);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue