1
1
Fork 0
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:
Eelco Dolstra 2025-12-16 15:39:52 +01:00
parent 5694772794
commit 21a251be5f

View file

@ -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