xbps/include
Juan RP 0c7701f2bc Introduce xbps_array_foreach_cb() and use it in random code.
This routine will spawn a thread per core to process N items stored
in the specified array, the last thread gets the remainder of items left.

Results have shown that xbps benefits if there is a considerable amount
of items and number of threads being spawned.

Use it in xbps_pkgdb_foreach_cb(), xbps-pkgdb(8), xbps-query(8)
and xbps-rindex(8).

On UP systems there's no overhead because pthread(3) is not used at all.

WIP! investigate if it can be used in libxbps (xbps_rpool_foreach()),
and finish conversion of xbps-rindex(8) -c.
2013-07-27 09:47:16 +02:00
..
xbps Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
compat.h XBPS can now be built on NetBSD (and probably any other BSD variant). 2012-12-06 12:58:17 +01:00
mainpage.h Add infrastructure changes to build the API documentation. 2010-01-23 02:37:19 +01:00
Makefile xbps_api.h -> xbps.h 2013-06-20 12:31:02 +02:00
queue.h Update queue.h with latest NetBSD's version. 2011-01-30 15:08:57 +01:00
xbps_api_impl.h Added support to verify reverse dependencies in a transaction. 2013-06-27 16:52:31 +02:00
xbps.h.in Introduce xbps_array_foreach_cb() and use it in random code. 2013-07-27 09:47:16 +02:00