mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #4726 from FearlessTobi/port-2312
Port yuzu-emu/yuzu#2312: "general: Use deducation guides for std::lock_guard and std::unique_lock"
This commit is contained in:
		
						commit
						4a206237be
					
				
					 21 changed files with 124 additions and 122 deletions
				
			
		|  | @ -59,7 +59,7 @@ void EmuThread::run() { | |||
| 
 | ||||
|             was_active = false; | ||||
|         } else { | ||||
|             std::unique_lock<std::mutex> lock(running_mutex); | ||||
|             std::unique_lock lock{running_mutex}; | ||||
|             running_cv.wait(lock, [this] { return IsRunning() || exec_step || stop_run; }); | ||||
|         } | ||||
|     } | ||||
|  |  | |||
|  | @ -49,7 +49,7 @@ public: | |||
|      * @note This function is thread-safe | ||||
|      */ | ||||
|     void SetRunning(bool running) { | ||||
|         std::unique_lock<std::mutex> lock(running_mutex); | ||||
|         std::unique_lock lock{running_mutex}; | ||||
|         this->running = running; | ||||
|         lock.unlock(); | ||||
|         running_cv.notify_all(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue