mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
Documentation: Correct some typos in kernel and browser docs
This commit is contained in:
parent
ea7ba34a31
commit
566d3cb393
Notes:
sideshowbarker
2024-07-18 17:00:44 +09:00
Author: https://github.com/siddarthsingh1 🔰
Commit: 566d3cb393
Pull-request: https://github.com/SerenityOS/serenity/pull/7697
2 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@ Locker locker(m_lock);
|
|||
return true;
|
||||
```
|
||||
|
||||
This lock doesn't disable interrupts at all, and if it already in use, the scheduler will simply yield away from that section until it tries to lock it again.
|
||||
This lock doesn't disable interrupts at all, and if it is already in use, the scheduler will simply yield away from that section until it tries to lock it again.
|
||||
|
||||
### Hard lock - `SpinLock<u8>`
|
||||
|
||||
|
@ -31,7 +31,7 @@ ScopedSpinLock lock(m_lock);
|
|||
return true;
|
||||
```
|
||||
|
||||
### Why we need soft and hard locking in the AHCI code?
|
||||
### Why do we need soft and hard locking in the AHCI code?
|
||||
|
||||
First of all, the proper way of taking a `SpinLock` and `Lock` is to:
|
||||
```c++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue