mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	gsp_gpu: Mark GetUnusedThreadId() as const
This doesn't modify class state.
This commit is contained in:
		
							parent
							
								
									76253063a3
								
							
						
					
					
						commit
						37861326ce
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue