[zion] Finish cleaning up process capability interface.

Make all functions generic and specify existing/vs new cap.
This commit is contained in:
Drew Galbraith 2023-06-16 15:09:15 -07:00
parent fc94bc5bf5
commit 242a18ae3c
5 changed files with 15 additions and 15 deletions

View file

@ -44,7 +44,7 @@ z_err_t Channel::Read(ZMessage& msg) {
msg.num_caps = next_msg->caps.size();
auto& proc = gScheduler->CurrentProcess();
for (uint64_t i = 0; i < msg.num_caps; i++) {
msg.caps[i] = proc.AddCapability(next_msg->caps.PopFront());
msg.caps[i] = proc.AddExistingCapability(next_msg->caps.PopFront());
}
pending_messages_.PopFront();