mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
Kernel: Don't register thread as custom data for FutexBlocker
Same deal as WaitQueueBlocker, we can get the blocked thread from Blocker::thread() now, so there's no need to register the current thread as custom data.
This commit is contained in:
parent
2c74533ba6
commit
b012170d69
Notes:
sideshowbarker
2024-07-18 05:19:58 +09:00
Author: https://github.com/awesomekling
Commit: b012170d69
3 changed files with 11 additions and 15 deletions
|
@ -140,7 +140,7 @@ bool Thread::WaitQueueBlocker::unblock()
|
|||
Thread::FutexBlocker::FutexBlocker(FutexQueue& futex_queue, u32 bitset)
|
||||
: m_bitset(bitset)
|
||||
{
|
||||
if (!add_to_blocker_set(futex_queue, Thread::current()))
|
||||
if (!add_to_blocker_set(futex_queue))
|
||||
m_should_block = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue