summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorMichael Maitland <michaeltmaitland@gmail.com>2024-05-22 08:27:35 -0400
committerGitHub <noreply@github.com>2024-05-22 08:27:35 -0400
commit71b1fbdff6cf567ad278c51f0acdcdf23de0ac28 (patch)
tree7be2864fccf1d17b7e09a4e14325771cf87e9f5a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent2aa218c247eef03f4ea922d635b7a9f46d061119 (diff)
[MISched][NFC] Add documentation comment in pickNode for ReadyQueue maintenence (#92976)
I had some trouble understanding why `removeReady` removed nodes from the Pending queue, since my intuition told me that the Pending queue did not represent a node that was ready. I took a deeper look and found that pickOnlyNode and pickNodeFromQueue only picked nodes from the Available queue too. I found that need to nodes from the Available and Pending queues that correspond to the opposite direction that we ended up choosing from (IsTopNode vs !IsTopNode). It took me a little longer than I would have liked to understand this fact, so I figured that I would add a comment in the code that makes it clear for future readers.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions