forked from eden-emu/eden
		
	kernel/event: Make data members private
Instead we can simply provide accessors to the required data instead of giving external read/write access to the variables directly.
This commit is contained in:
		
							parent
							
								
									bca27da66b
								
							
						
					
					
						commit
						11eadbccc9
					
				
					 2 changed files with 9 additions and 5 deletions
				
			
		|  | @ -31,10 +31,9 @@ public: | |||
|         return HANDLE_TYPE; | ||||
|     } | ||||
| 
 | ||||
|     ResetType reset_type; ///< Current ResetType
 | ||||
| 
 | ||||
|     bool signaled;    ///< Whether the event has already been signaled
 | ||||
|     std::string name; ///< Name of event (optional)
 | ||||
|     ResetType GetResetType() const { | ||||
|         return reset_type; | ||||
|     } | ||||
| 
 | ||||
|     bool ShouldWait(Thread* thread) const override; | ||||
|     void Acquire(Thread* thread) override; | ||||
|  | @ -47,6 +46,11 @@ public: | |||
| private: | ||||
|     Event(); | ||||
|     ~Event() override; | ||||
| 
 | ||||
|     ResetType reset_type; ///< Current ResetType
 | ||||
| 
 | ||||
|     bool signaled;    ///< Whether the event has already been signaled
 | ||||
|     std::string name; ///< Name of event (optional)
 | ||||
| }; | ||||
| 
 | ||||
| } // namespace Kernel
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash