mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	Kernel: Rename Thread::BlockCondition to BlockerSet
This class represents a set of Thread::Blocker objects attached to something that those blockers are waiting on.
This commit is contained in:
		
							parent
							
								
									05e1b196e9
								
							
						
					
					
						commit
						85546af417
					
				
					 15 changed files with 83 additions and 86 deletions
				
			
		|  | @ -50,9 +50,9 @@ private: | |||
| 
 | ||||
|     class Blocker; | ||||
| 
 | ||||
|     class Plan9FSBlockCondition final : public Thread::BlockCondition { | ||||
|     class Plan9FSBlockerSet final : public Thread::BlockerSet { | ||||
|     public: | ||||
|         Plan9FSBlockCondition(Plan9FS& fs) | ||||
|         Plan9FSBlockerSet(Plan9FS& fs) | ||||
|             : m_fs(fs) | ||||
|         { | ||||
|         } | ||||
|  | @ -87,7 +87,7 @@ private: | |||
|             , m_message(message) | ||||
|             , m_completion(move(completion)) | ||||
|         { | ||||
|             set_block_condition(fs.m_completion_blocker); | ||||
|             add_to_blocker_set(fs.m_completion_blocker); | ||||
|         } | ||||
|         virtual StringView state_string() const override { return "Waiting"sv; } | ||||
|         virtual Type blocker_type() const override { return Type::Plan9FS; } | ||||
|  | @ -136,7 +136,7 @@ private: | |||
|     size_t m_max_message_size { 4 * KiB }; | ||||
| 
 | ||||
|     Mutex m_send_lock { "Plan9FS send" }; | ||||
|     Plan9FSBlockCondition m_completion_blocker; | ||||
|     Plan9FSBlockerSet m_completion_blocker; | ||||
|     HashMap<u16, NonnullRefPtr<ReceiveCompletion>> m_completions; | ||||
| 
 | ||||
|     Spinlock<u8> m_thread_lock; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling