hle: kernel: KSynchronizationObject: Fix variable shadowing.
This commit is contained in:
parent
8f4ff06c4c
commit
2c49a65d2b
@ -35,18 +35,18 @@ public:
|
|||||||
|
|
||||||
[[nodiscard]] std::vector<KThread*> GetWaitingThreadsForDebugging() const;
|
[[nodiscard]] std::vector<KThread*> GetWaitingThreadsForDebugging() const;
|
||||||
|
|
||||||
void LinkNode(ThreadListNode* node) {
|
void LinkNode(ThreadListNode* node_) {
|
||||||
// Link the node to the list.
|
// Link the node to the list.
|
||||||
if (thread_list_tail == nullptr) {
|
if (thread_list_tail == nullptr) {
|
||||||
thread_list_head = node;
|
thread_list_head = node_;
|
||||||
} else {
|
} else {
|
||||||
thread_list_tail->next = node;
|
thread_list_tail->next = node_;
|
||||||
}
|
}
|
||||||
|
|
||||||
thread_list_tail = node;
|
thread_list_tail = node_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UnlinkNode(ThreadListNode* node) {
|
void UnlinkNode(ThreadListNode* node_) {
|
||||||
// Unlink the node from the list.
|
// Unlink the node from the list.
|
||||||
ThreadListNode* prev_ptr =
|
ThreadListNode* prev_ptr =
|
||||||
reinterpret_cast<ThreadListNode*>(std::addressof(thread_list_head));
|
reinterpret_cast<ThreadListNode*>(std::addressof(thread_list_head));
|
||||||
@ -58,13 +58,13 @@ public:
|
|||||||
prev_ptr = prev_ptr->next;
|
prev_ptr = prev_ptr->next;
|
||||||
tail_prev = prev_val;
|
tail_prev = prev_val;
|
||||||
prev_val = prev_ptr;
|
prev_val = prev_ptr;
|
||||||
} while (prev_ptr != node);
|
} while (prev_ptr != node_);
|
||||||
|
|
||||||
if (thread_list_tail == node) {
|
if (thread_list_tail == node_) {
|
||||||
thread_list_tail = tail_prev;
|
thread_list_tail = tail_prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
prev->next = node->next;
|
prev->next = node_->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user