IPC: Push domain objects as move handles when not in a domain.

This commit is contained in:
Subv 2018-01-15 15:31:10 -05:00 committed by bunnei
parent 1aa4cdc3c8
commit 5bc14e791a
2 changed files with 28 additions and 2 deletions

View file

@ -175,6 +175,14 @@ public:
domain_objects.emplace_back(std::move(object));
}
/// Clears the list of objects so that no lingering objects are written accidentally to the
/// response buffer.
void ClearIncomingObjects() {
move_objects.clear();
copy_objects.clear();
domain_objects.clear();
}
private:
std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf;
SharedPtr<Kernel::Domain> domain;