mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									79793caf48
								
							
						
					
					
						commit
						389264f09d
					
				| @ -675,6 +675,15 @@ function makeDeferredPool(size, paused){ | |||||||
| 		_paused: paused, | 		_paused: paused, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	// Run a worker...
 | ||||||
|  | 	//
 | ||||||
|  | 	// This will:
 | ||||||
|  | 	// 	- create and add a worker to the pool, which will:
 | ||||||
|  | 	// 		- run an element from the queue
 | ||||||
|  | 	// 		- remove self from pool
 | ||||||
|  | 	// 		- if the pool is not full, create another worker (call 
 | ||||||
|  | 	// 		  ._run(..)) else exit
 | ||||||
|  | 	// 		- call ._fill() to replenish the pool
 | ||||||
| 	Pool._run = function(deferred, func, args){ | 	Pool._run = function(deferred, func, args){ | ||||||
| 		var that = this | 		var that = this | ||||||
| 		var pool = this.pool | 		var pool = this.pool | ||||||
| @ -750,6 +759,9 @@ function makeDeferredPool(size, paused){ | |||||||
| 
 | 
 | ||||||
| 		return worker | 		return worker | ||||||
| 	} | 	} | ||||||
|  | 
 | ||||||
|  | 	// Fill the pool...
 | ||||||
|  | 	//
 | ||||||
| 	Pool._fill = function(){ | 	Pool._fill = function(){ | ||||||
| 		var that = this | 		var that = this | ||||||
| 		var pool_size = this.size | 		var pool_size = this.size | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user