mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Merge pull request #924 from aroulin/qt-disassembly-step
Qt: Fix disassembly widget stepping
This commit is contained in:
		
						commit
						1fc0347d27
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		|  | @ -65,7 +65,7 @@ void EmuThread::run() { | ||||||
|             was_active = false; |             was_active = false; | ||||||
|         } else { |         } else { | ||||||
|             std::unique_lock<std::mutex> lock(running_mutex); |             std::unique_lock<std::mutex> lock(running_mutex); | ||||||
|             running_cv.wait(lock, [this]{ return IsRunning() || stop_run; }); |             running_cv.wait(lock, [this]{ return IsRunning() || exec_step || stop_run; }); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -35,7 +35,10 @@ public: | ||||||
|      * Steps the emulation thread by a single CPU instruction (if the CPU is not already running) |      * Steps the emulation thread by a single CPU instruction (if the CPU is not already running) | ||||||
|      * @note This function is thread-safe |      * @note This function is thread-safe | ||||||
|      */ |      */ | ||||||
|     void ExecStep() { exec_step = true; } |     void ExecStep() { | ||||||
|  |         exec_step = true; | ||||||
|  |         running_cv.notify_all(); | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     /**
 |     /**
 | ||||||
|      * Sets whether the emulation thread is running or not |      * Sets whether the emulation thread is running or not | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue