mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	k_thread: fix single core
This commit is contained in:
		@@ -1185,8 +1185,10 @@ void KThread::RequestDummyThreadWait() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void KThread::DummyThreadBeginWait() {
 | 
			
		||||
    ASSERT(this->IsDummyThread());
 | 
			
		||||
    ASSERT(!kernel.IsPhantomModeForSingleCore());
 | 
			
		||||
    if (!this->IsDummyThread() || kernel.IsPhantomModeForSingleCore()) {
 | 
			
		||||
        // Occurs in single core mode.
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Block until runnable is no longer false.
 | 
			
		||||
    dummy_thread_runnable.wait(false);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user