swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ReaperQueue


From: Marcus G. Daniels
Subject: Re: ReaperQueue
Date: 19 Jul 1999 16:45:50 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "JS" == Jayshree Sarma <address@hidden> writes:

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]