mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Common: Clean up ThreadQueueList
Replace all the C-style complicated buffer management with a std::deque. In addition to making the code easier to understand it also adds support for non-POD IdTypes. Also clean the rest of the code to follow our code style.
This commit is contained in:
		@@ -75,7 +75,7 @@ public:
 | 
			
		||||
static std::vector<Handle> thread_queue;
 | 
			
		||||
 | 
			
		||||
// Lists only ready thread ids.
 | 
			
		||||
static Common::ThreadQueueList<Handle> thread_ready_queue;
 | 
			
		||||
static Common::ThreadQueueList<Handle, THREADPRIO_LOWEST+1> thread_ready_queue;
 | 
			
		||||
 | 
			
		||||
static Handle current_thread_handle;
 | 
			
		||||
static Thread* current_thread;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user