aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/shared_memory.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-09-28 11:53:32 -0500
committerSubv <subv2112@gmail.com>2017-09-28 11:53:32 -0500
commita0054d695e02fd7552101df77cbe1eadf72593d4 (patch)
tree10dd3fcd755bd7bdc27eef120885c7e700ab4288 /src/core/hle/kernel/shared_memory.cpp
parent1d94b4fd3daf09638d53ffddd76887908afbcea9 (diff)
Kernel/Threads: When putting a thread to wait, specify a function to execute when it is awoken.
This change makes for a clearer (less confusing) path of execution in the scheduler, now the code to execute when a thread awakes is closer to the code that puts the thread to sleep (WaitSynch1, WaitSynchN). It also allows us to implement the special wake up behavior of ReplyAndReceive without hacking up WaitObject::WakeupAllWaitingThreads. If savestates are desired in the future, we can change this implementation to one similar to the CoreTiming event system, where we first register the callback functions at startup and assign their identifiers to the Thread callback variable instead of directly assigning a lambda to the wake up callback variable.
Diffstat (limited to 'src/core/hle/kernel/shared_memory.cpp')
0 files changed, 0 insertions, 0 deletions