mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
Kernel: Move Thread::m_joinee_exit_value into the JoinBlocker
There's no need for this to be a permanent Thread member. Just use a reference in the JoinBlocker instead.
This commit is contained in:
parent
69efa3f630
commit
cb5021419e
4 changed files with 10 additions and 7 deletions
|
@ -240,7 +240,7 @@ void Thread::finalize()
|
|||
|
||||
if (m_joiner) {
|
||||
ASSERT(m_joiner->m_joinee == this);
|
||||
m_joiner->m_joinee_exit_value = m_exit_value;
|
||||
static_cast<JoinBlocker*>(m_joiner->m_blocker)->set_joinee_exit_value(m_exit_value);
|
||||
m_joiner->m_joinee = nullptr;
|
||||
// NOTE: We clear the joiner pointer here as well, to be tidy.
|
||||
m_joiner = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue