The Trunk: Network-ul.81.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Network-ul.81.mcz

commits-2
Levente Uzonyi uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-ul.81.mcz

==================== Summary ====================

Name: Network-ul.81
Author: ul
Time: 27 August 2010, 11:42:58.099 pm
UUID: ed4a64cf-2d3a-174f-858b-384a021ae828
Ancestors: Network-nice.80

- all VMs have finalization support, so there's no need to check for it anymore
- Socket class >> #register: and #unregister: now returns the added/removed object

=============== Diff against Network-nice.80 ===============

Item was changed:
  ----- Method: Socket class>>register: (in category 'registry') -----
  register: anObject
+
+ ^self registry add: anObject!
- WeakArray isFinalizationSupported ifFalse:[^anObject].
- self registry add: anObject!

Item was changed:
  ----- Method: Socket class>>unregister: (in category 'registry') -----
  unregister: anObject
+
+ ^self registry remove: anObject ifAbsent: nil!
- WeakArray isFinalizationSupported ifFalse:[^anObject].
- self registry remove: anObject ifAbsent:[]!

Item was changed:
  ----- Method: Socket class>>registry (in category 'registry') -----
  registry
+
+ ^Registry ifNil: [ Registry := WeakRegistry new ]!
- WeakArray isFinalizationSupported ifFalse:[^nil].
- ^Registry isNil
- ifTrue:[Registry := WeakRegistry new]
- ifFalse:[Registry].!