mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
This commit is contained in:
		
							parent
							
								
									77b9fa89dd
								
							
						
					
					
						commit
						90b1354688
					
				
					 188 changed files with 562 additions and 562 deletions
				
			
		|  | @ -4,15 +4,15 @@ | |||
| #include <Kernel/SharedMemory.h> | ||||
| #include <Kernel/VM/VMObject.h> | ||||
| 
 | ||||
| Lockable<HashMap<String, RetainPtr<SharedMemory>>>& shared_memories() | ||||
| Lockable<HashMap<String, RefPtr<SharedMemory>>>& shared_memories() | ||||
| { | ||||
|     static Lockable<HashMap<String, RetainPtr<SharedMemory>>>* map; | ||||
|     static Lockable<HashMap<String, RefPtr<SharedMemory>>>* map; | ||||
|     if (!map) | ||||
|         map = new Lockable<HashMap<String, RetainPtr<SharedMemory>>>; | ||||
|         map = new Lockable<HashMap<String, RefPtr<SharedMemory>>>; | ||||
|     return *map; | ||||
| } | ||||
| 
 | ||||
| KResultOr<Retained<SharedMemory>> SharedMemory::open(const String& name, int flags, mode_t mode) | ||||
| KResultOr<NonnullRefPtr<SharedMemory>> SharedMemory::open(const String& name, int flags, mode_t mode) | ||||
| { | ||||
|     UNUSED_PARAM(flags); | ||||
|     LOCKER(shared_memories().lock()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling