Kernel: Start using boost::intrusive_ptr for lifetime management
This commit is contained in:
parent
d751de7341
commit
8ad41775cc
13 changed files with 96 additions and 91 deletions
|
@ -59,7 +59,8 @@ void Manager::DeleteService(const std::string& port_name) {
|
|||
}
|
||||
|
||||
Interface* Manager::FetchFromHandle(Handle handle) {
|
||||
return Kernel::g_handle_table.Get<Interface>(handle);
|
||||
// TODO(yuriks): This function is very suspicious and should probably be exterminated.
|
||||
return Kernel::g_handle_table.Get<Interface>(handle).get();
|
||||
}
|
||||
|
||||
Interface* Manager::FetchFromPortName(const std::string& port_name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue