mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +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
3 changed files with 11 additions and 15 deletions
|
@ -42,7 +42,7 @@ public:
|
|||
bool is_empty_and_no_imminent_waits_locked();
|
||||
|
||||
protected:
|
||||
virtual bool should_add_blocker(Thread::Blocker& b, void* data) override;
|
||||
virtual bool should_add_blocker(Thread::Blocker& b, void*) override;
|
||||
|
||||
private:
|
||||
size_t m_imminent_waits { 1 }; // We only create this object if we're going to be waiting, so start out with 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue