*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Mon, 08 May 2006 15:20:01 +0200
changeset 1635 a3aaefef0a2c
parent 1634 466927adcd9c
child 1636 a3e5703901c8
*** empty log message ***
SharedCollection.st
--- a/SharedCollection.st	Mon May 08 15:13:02 2006 +0200
+++ b/SharedCollection.st	Mon May 08 15:20:01 2006 +0200
@@ -119,6 +119,15 @@
     ^ rslt
 !
 
+size
+    |rslt|
+
+    accessLock critical:[
+        rslt := realCollection size
+    ].
+    ^ rslt
+!
+
 subclassResponsibility
     "catches every required message of the collection protocol"
 
@@ -134,5 +143,5 @@
 !SharedCollection class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/SharedCollection.st,v 1.2 2006-05-08 13:13:02 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/SharedCollection.st,v 1.3 2006-05-08 13:20:01 cg Exp $'
 ! !