gsp_gpu: Mark GetUnusedThreadId() as const

This doesn't modify class state.
This commit is contained in:
Lioncash 2020-06-05 21:05:19 -04:00
parent 76253063a3
commit 37861326ce
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ static PAddr VirtualToPhysicalAddress(VAddr addr) {
return addr | 0x80000000;
}
u32 GSP_GPU::GetUnusedThreadId() {
u32 GSP_GPU::GetUnusedThreadId() const {
for (u32 id = 0; id < MaxGSPThreads; ++id) {
if (!used_thread_ids[id])
return id;

View file

@ -424,7 +424,7 @@ private:
/// Returns the session data for the specified registered thread id, or nullptr if not found.
SessionData* FindRegisteredThreadData(u32 thread_id);
u32 GetUnusedThreadId();
u32 GetUnusedThreadId() const;
std::unique_ptr<Kernel::SessionRequestHandler::SessionDataBase> MakeSessionData() override;