Kaynağa Gözat

BPending: optimization, use RemoveFirst instead of Remove

ambrop7 12 yıl önce
ebeveyn
işleme
a53724cfc5
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      base/BPending.c

+ 1 - 1
base/BPending.c

@@ -74,7 +74,7 @@ void BPendingGroup_ExecuteJob (BPendingGroup *g)
     ASSERT(p->pending)
     
     // remove from jobs list
-    BPending__List_Remove(&g->jobs, p);
+    BPending__List_RemoveFirst(&g->jobs);
     
     // set not pending
     p->pending_node.next = p;