#DOCUMENTATION by stefan
authorStefan Vogel <sv@exept.de>
Fri, 27 Mar 2020 16:20:00 +0100
changeset 25345 f58df9f5acfd
parent 25344 b6b71d974e50
child 25346 dda6d105f63d
#DOCUMENTATION by stefan class: Registry comment/format in: #unregisterAllForWhich:
Registry.st
--- a/Registry.st	Thu Mar 26 15:05:07 2020 +0100
+++ b/Registry.st	Fri Mar 27 16:20:00 2020 +0100
@@ -328,23 +328,25 @@
     self removeKey:anObject ifAbsent:[].
 !
 
-unregisterAllForWhich:aBlock
-    "remove registration of all entries, for which the argument block
-     evaluates to true.
-     should be sent, if we are no more interested in destruction of
+unregisterAllForWhich:aOneArgBlock
+    "remove registration of all entries, for which the argument,
+     aOneArgBlock evaluates to true.
+     Should be sent, if we are no more interested in destruction of
      a group of objects (i.e. it no longer holds external resources)."
 
-    |wasBlocked any|
+    |wasBlocked anyRemoved|
 
     wasBlocked := OperatingSystem blockInterrupts.
     keyArray validElementsDo:[:eachObject|
-        (eachObject ~~ DeletedEntry and:[aBlock value:eachObject]) ifTrue:[
+        (eachObject ~~ DeletedEntry and:[aOneArgBlock value:eachObject]) ifTrue:[
             self safeRemoveKey:eachObject.      
-            any := true.
+            anyRemoved := true.
         ].
     ].
-    any ifTrue:[ self possiblyShrink ].
+    anyRemoved ifTrue:[ self possiblyShrink ].
     wasBlocked ifFalse:[OperatingSystem unblockInterrupts].
+
+    "Modified (comment): / 27-03-2020 / 15:51:15 / Stefan Vogel"
 !
 
 unregisterAllForWhichHandle:aBlock