mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Kernel: Fixed default thread priority.
This commit is contained in:
		
							parent
							
								
									b16fe21764
								
							
						
					
					
						commit
						e08f55b1a7
					
				
					 2 changed files with 4 additions and 5 deletions
				
			
		|  | @ -154,7 +154,7 @@ void Shutdown() { | ||||||
|  */ |  */ | ||||||
| bool LoadExec(u32 entry_point) { | bool LoadExec(u32 entry_point) { | ||||||
|     // 0x30 is the typical main thread priority I've seen used so far
 |     // 0x30 is the typical main thread priority I've seen used so far
 | ||||||
|     g_main_thread = Kernel::SetupMainThread(Kernel::DEFAULT_STACK_SIZE, entry_point, 0x30); |     g_main_thread = Kernel::SetupMainThread(Kernel::DEFAULT_STACK_SIZE, entry_point, THREADPRIO_DEFAULT); | ||||||
| 
 | 
 | ||||||
|     return true; |     return true; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -18,10 +18,9 @@ | ||||||
| #include "core/hle/result.h" | #include "core/hle/result.h" | ||||||
| 
 | 
 | ||||||
| enum ThreadPriority { | enum ThreadPriority { | ||||||
|     THREADPRIO_HIGHEST      = 0,    ///< Highest thread priority
 |     THREADPRIO_HIGHEST      = 0x0,  ///< Highest thread priority
 | ||||||
|     THREADPRIO_DEFAULT      = 16,   ///< Default thread priority for userland apps
 |     THREADPRIO_DEFAULT      = 0x30, ///< Default thread priority for userland apps
 | ||||||
|     THREADPRIO_LOW          = 31,   ///< Low range of thread priority for userland apps
 |     THREADPRIO_LOWEST       = 0x3F, ///< Lowest thread priority
 | ||||||
|     THREADPRIO_LOWEST       = 63,   ///< Thread priority max checked by svcCreateThread
 |  | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| enum ThreadProcessorId { | enum ThreadProcessorId { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue