فهرست منبع

BPending: optimization, use RemoveFirst instead of Remove

ambrop7 12 سال پیش
والد
کامیت
a53724cfc5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      base/BPending.c

+ 1 - 1
base/BPending.c

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