Fixed bug: before-thunk needs to obtain the lock.
-- Martin
This commit is contained in:
		
							parent
							
								
									234d1cc70a
								
							
						
					
					
						commit
						6863cce44f
					
				| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
(define (with-lock lock thunk)
 | 
			
		||||
  (dynamic-wind 
 | 
			
		||||
   (lambda ()
 | 
			
		||||
     (release-lock lock))
 | 
			
		||||
     (obtain-lock lock))
 | 
			
		||||
   thunk
 | 
			
		||||
   (lambda ()
 | 
			
		||||
     (release-lock lock))))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue