Make UpdateCore's locking coreMigrationMutex requirement explicit

`Scheduler::UpdateCore` implicitly depended on `KThread::coreMigrationMutex` being locked during calls to it, this requirement has now been made explicit to avoid confusion.
This commit is contained in:
PixelyIon 2022-11-30 03:51:45 +05:30 committed by Mark Collins
parent c4b4532222
commit 7fef849594

View File

@ -129,6 +129,7 @@ namespace skyline {
/**
* @brief Updates the core that the supplied thread is resident to according to its new affinity mask and ideal core
* @note This supports changing the core of a thread which is currently running
* @note 'KThread::coreMigrationMutex' **must** be locked by the calling thread prior to calling this
*/
void UpdateCore(const std::shared_ptr<type::KThread> &thread);