xbps/lib
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
..
compat lib/compat/vasprintf.c: make this build and fix sign-compare warnings. 2013-02-02 01:31:20 +01:00
external lib/external/fexec.c: add some parens so that expression is evaluated correctly. 2013-03-07 20:15:16 +01:00
fetch lib/fetch: ignore -Wformat-nonliteral with clang. 2013-07-02 08:54:02 +02:00
portableproplib Fixed some issues/warnings found by clang-analyzer. 2013-06-20 11:25:43 +02:00
archive.c Fixed some issues/warnings found by clang-analyzer. 2013-06-20 11:25:43 +02:00
cb_util.c New pkgdb (0.21) and repo index (1.7) format, see NEWS for info. 2013-03-05 04:08:42 +01:00
download.c Set _BSD_SOURCE before including string.h to get strlc{at,py} with musl. 2013-03-03 08:21:00 +01:00
initend.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
Makefile Added support to verify reverse dependencies in a transaction. 2013-06-27 16:52:31 +02:00
package_config_files.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_configure.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_conflicts.c Added support to verify reverse dependencies in a transaction. 2013-06-27 16:52:31 +02:00
package_find_obsoletes.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_orphans.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_register.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_remove.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_script.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_state.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_unpack.c Fixed some issues/warnings found by clang-analyzer. 2013-06-20 11:25:43 +02:00
pkgdb.c Introduce xbps_array_foreach_cb() and use it in random code. 2013-07-27 09:47:16 +02:00
plist_fetch.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
plist_find.c lib/plist_find.c: typo in comment. 2013-06-27 16:26:19 +02:00
plist_match.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
plist_remove.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
plist.c Introduce xbps_array_foreach_cb() and use it in random code. 2013-07-27 09:47:16 +02:00
proplib_wrapper.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
repo_pkgdeps.c lib/repo_pkgdeps.c: print correctly missing dependencies. 2013-07-16 08:00:42 +02:00
repo_sync.c Use a single file to store repository data. 2013-06-10 10:28:39 +02:00
repo.c xbps-query(8): -L now prints all repos, including non working repos (close #11). 2013-07-26 11:42:52 +02:00
rpool_get.c rpool: no need to add repository object; it's already set by the repo code. 2013-07-07 09:58:30 +02:00
rpool.c xbps-query(8): -L now prints all repos, including non working repos (close #11). 2013-07-26 11:42:52 +02:00
transaction_commit.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
transaction_dictionary.c Added support to verify reverse dependencies in a transaction. 2013-06-27 16:52:31 +02:00
transaction_ops.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
transaction_package_replace.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
transaction_revdeps.c Check if an update for conflicting pkg is in the transaction for revdeps in vpkgs. 2013-07-05 10:09:32 +02:00
transaction_sortdeps.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
util_hash.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
util.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00