[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rescheduling
From: |
William S. Shu |
Subject: |
Re: rescheduling |
Date: |
Fri, 23 Apr 1999 11:27:23 +0100 |
>MD> All objects have a list that holds all the notify functions added with
>MD> addRef:withArgument. These are all called before the object is
>MD> deallocated and the references disappear.
>
>WS> Does this mean if I used addRef:withArgument THRICE with the same
>WS> (identical) receiver and arguments, as in:
>
>[example deleted]
>
>WS> the same object will be called THRICE before being deallocated by drop?
(I
>WS> would be more at ease if this is the case!)
>
>Yes, notify will be called three times, and then the deallocation occurs.
>
What is the behaviour of removeRef: messages? Would it have to be called
THRICE as well? or only once?
I take it that when it is called more times than addRef:withArgument, the
excess messages are ignored. e.g., if removeRef: is sent FOUR times, after
THREE addRef:withArgument messages, the FOURTH message is ignored.
I am asking all these questions because I can have objects with multiple
relationships (multiple copies of the other's pointers), each of which is
controlled by (addRef:withArgument: - removeRef: ) pairs.
William.
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.