[Mono-dev] Small bug in commit r87594 to System.Threading?

Juraj Skripsky js at hotfeet.ch
Tue Oct 16 14:49:02 EDT 2007


Hi Paolo,

I've just seen your commit r87594 to System.Threading and was puzzled by
these lines:

+                                       if (expired != null) {
+                                               foreach (Timer t1 in expired) {
+                                                       jobs.Remove (t1);
+                                               }
+                                               expired.Clear ();
+                                               if (expired.Count > 50)
+                                                       expired = null;
+                                       }

Was the line "expired.Clear ();" left there by accident?
The following if(..) will never evaluate to true...

- Juraj




More information about the Mono-devel-list mailing list