mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-02 08:25:07 +01:00
gsp_gpu: Mark GetUnusedThreadId() as const
This doesn't modify class state.
This commit is contained in:
parent
76253063a3
commit
37861326ce
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user