mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	NWM_UDS: change SleepClientThread to use std::chrono::nanoseconds
This commit is contained in:
		
							parent
							
								
									853a79c94c
								
							
						
					
					
						commit
						dfc22661a4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -555,7 +555,7 @@ void NWM_UDS::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) { | ||||||
|     rb.PushMappedBuffer(out_buffer); |     rb.PushMappedBuffer(out_buffer); | ||||||
| 
 | 
 | ||||||
|     LOG_DEBUG(Service_NWM, "called out_buffer_size=0x%08X, wlan_comm_id=0x%08X, id=0x%08X," |     LOG_DEBUG(Service_NWM, "called out_buffer_size=0x%08X, wlan_comm_id=0x%08X, id=0x%08X," | ||||||
|                             "unk1=0x%08X, unk2=0x%08X, offset=%zu", |                            "unk1=0x%08X, unk2=0x%08X, offset=%zu", | ||||||
|               out_buffer_size, wlan_comm_id, id, unk1, unk2, cur_buffer_size); |               out_buffer_size, wlan_comm_id, id, unk1, unk2, cur_buffer_size); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -1061,7 +1061,7 @@ void NWM_UDS::ConnectToNetwork(Kernel::HLERequestContext& ctx) { | ||||||
| 
 | 
 | ||||||
|     // 300 ms
 |     // 300 ms
 | ||||||
|     // Since this timing is handled by core_timing it could differ from the 'real world' time
 |     // Since this timing is handled by core_timing it could differ from the 'real world' time
 | ||||||
|     static constexpr u64 UDSConnectionTimeout = 300000000; |     static constexpr std::chrono::nanoseconds UDSConnectionTimeout{300000000}; | ||||||
| 
 | 
 | ||||||
|     connection_event = ctx.SleepClientThread( |     connection_event = ctx.SleepClientThread( | ||||||
|         Kernel::GetCurrentThread(), "uds::ConnectToNetwork", UDSConnectionTimeout, |         Kernel::GetCurrentThread(), "uds::ConnectToNetwork", UDSConnectionTimeout, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue