mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-20 18:12:53 +00:00
Kernel: Rename ScopedSpinlock => SpinlockLocker
This matches MutexLocker, and doesn't sound like it's a lock itself.
This commit is contained in:
parent
55adace359
commit
c922a7da09
Notes:
sideshowbarker
2024-07-18 05:24:51 +09:00
Author: https://github.com/awesomekling
Commit: c922a7da09
78 changed files with 365 additions and 366 deletions
|
@ -93,7 +93,7 @@ KResultOr<FlatPtr> Process::sys$fork(RegisterState& regs)
|
|||
#endif
|
||||
|
||||
{
|
||||
ScopedSpinlock lock(address_space().get_lock());
|
||||
SpinlockLocker lock(address_space().get_lock());
|
||||
for (auto& region : address_space().regions()) {
|
||||
dbgln_if(FORK_DEBUG, "fork: cloning Region({}) '{}' @ {}", region, region->name(), region->vaddr());
|
||||
auto maybe_region_clone = region->try_clone();
|
||||
|
@ -120,7 +120,7 @@ KResultOr<FlatPtr> Process::sys$fork(RegisterState& regs)
|
|||
|
||||
PerformanceManager::add_process_created_event(*child);
|
||||
|
||||
ScopedSpinlock lock(g_scheduler_lock);
|
||||
SpinlockLocker lock(g_scheduler_lock);
|
||||
child_first_thread->set_affinity(Thread::current()->affinity());
|
||||
child_first_thread->set_state(Thread::State::Runnable);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue