mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Kernel: Rename File::{before_removing => will_be_destroyed}
This will allow File and it's descendants to use RefCounted instead of having a custom implementation of unref. (Since RefCounted calls will_be_destroyed automatically) This commit also removes an erroneous call to `before_removing` in AHCIPort, this is a duplicate call, as the only reference to the device is immediately dropped following the call, which in turns calls `before_removing` via File::unref.
This commit is contained in:
parent
d7ec5d042f
commit
4a3a947df3
Notes:
sideshowbarker
2024-07-17 22:01:05 +09:00
Author: https://github.com/IdanHo
Commit: 4a3a947df3
Pull-request: https://github.com/SerenityOS/serenity/pull/11474
Reviewed-by: https://github.com/bgianfo ✅
6 changed files with 5 additions and 6 deletions
|
@ -131,7 +131,7 @@ void Device::after_inserting()
|
|||
});
|
||||
}
|
||||
|
||||
void Device::before_removing()
|
||||
void Device::will_be_destroyed()
|
||||
{
|
||||
VERIFY(m_sysfs_component);
|
||||
SysFSComponentRegistry::the().devices_list().with_exclusive([&](auto& list) -> void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue