Ignore:
Timestamp:
Dec 28, 2012, 8:07:50 PM (9 years ago)
Author:
jordan
Message:

(trunk, libT) #5199 'tr_sessionGetNextQueuedTorrent() can be faster' -- copy peer-mgr.c's partial-sorting peer candidate code to a reusable function in utils.c, tr_quickfindFirstK()"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.h

    r13667 r13708  
    344344                   bool       * exact_match) TR_GNUC_HOT TR_GNUC_NONNULL (1,5,6);
    345345
     346/** @brief moves the best k items to the first slots in the array. O(n) */
     347void tr_quickfindFirstK (void * base, size_t nmemb, size_t size,
     348                         int (*compar)(const void *, const void *), size_t k);
    346349
    347350/**
Note: See TracChangeset for help on using the changeset viewer.