util: implement red black trees as templates over macros

This commit is contained in:
Michael Scire
2021-04-20 16:56:33 -07:00
parent 0a11d341b7
commit 57b6c71c1c
6 changed files with 787 additions and 1040 deletions

View File

@@ -168,7 +168,7 @@ namespace ams::kern {
{
KScopedSchedulerLock sl;
auto it = m_tree.nfind_light({ cv_key, -1 });
auto it = m_tree.nfind_key({ cv_key, -1 });
while ((it != m_tree.end()) && (count <= 0 || num_waiters < count) && (it->GetConditionVariableKey() == cv_key)) {
KThread *target_thread = std::addressof(*it);