mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 10:39:40 +01:00 
			
		
		
		
	morphos: use MEMF_SEM_PROTECTED flag for semaphore protect our memory pool. this is required for the future threading (concurrent accesses to the same pool from separate threads).
git-svn-id: trunk@30355 -
This commit is contained in:
		
							parent
							
								
									6b0a19c0ab
								
							
						
					
					
						commit
						0bccf5f09f
					
				@ -365,7 +365,7 @@ begin
 | 
			
		||||
 if MOS_UtilityBase=nil then Halt(1);
 | 
			
		||||
 | 
			
		||||
 { Creating the memory pool for growing heap }
 | 
			
		||||
 ASYS_heapPool:=CreatePool(MEMF_FAST,growheapsize2,growheapsize1);
 | 
			
		||||
 ASYS_heapPool:=CreatePool(MEMF_FAST or MEMF_SEM_PROTECTED,growheapsize2,growheapsize1);
 | 
			
		||||
 if ASYS_heapPool=nil then Halt(1);
 | 
			
		||||
 | 
			
		||||
 if MOS_ambMsg=nil then begin
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user