1. 16 Mar, 2019 2 commits
    • Lioncash's avatar
      kernel/thread: Amend condition within UpdatePriority() · 39483b92
      Lioncash authored
      This condition was checking against the nominal thread priority, whereas
      the kernel itself checks against the current priority instead. We were
      also assigning the nominal priority, when we should be assigning
      current_priority, which takes priority inheritance into account.
      
      This can lead to the incorrect priority being assigned to a thread.
      
      Given we recursively update the relevant threads, we don't need to go
      through the whole mutex waiter list. This matches what the kernel does
      as well (only accessing the first entry within the waiting list).
      39483b92
    • Lioncash's avatar
      kernel/thread: Maintain priority ordering of added mutex waiting threads · 0b78cfcc
      Lioncash authored
      The kernel keeps the internal waiting list ordered by priority. This is
      trivial to do with std::find_if followed by an insertion.
      0b78cfcc
  2. 12 Mar, 2019 3 commits
  3. 10 Mar, 2019 9 commits
  4. 09 Mar, 2019 7 commits
  5. 08 Mar, 2019 11 commits
  6. 07 Mar, 2019 8 commits