[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ReaperQueue
From: |
Jayshree Sarma |
Subject: |
Re: ReaperQueue |
Date: |
Mon, 19 Jul 1999 21:32:55 -0400 (EDT) |
Marcus and Ken,
Thanks,
the first one was a typo, I have > in the code.
(Sorry, I should have checked the message before posting).
the documentation for deleteAll says that members are dropped
as well. So I do not need the line
[deadBug drop];
within the while loop, correct?
I can just have
[reaperQueue deleteAll];
after the while loop.
Do I need the following also?
[index drop];
On 19 Jul 1999, Marcus G. Daniels wrote:
> Instead of:
>
> JS> if ([reaperQueue getCount] = 0)
>
> I think you want:
>
> if ([reaperQueue getCount] > 0)
>
> Also:
>
> - Instead of putting the drop in the loop, use deleteAll instead of
> removeAll. The way you have it coded, there will be dead
> pointers in the reaperQueue by the time you get to removeAll.
> - Remember to drop the index when you're done with it
> - Use == for equality tests; = is for assignment.
>
==================================
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.