update_engine: Replace gthread with libchrome equivalents.
This patch replaces the gthread usage in the multi-threaded full
payload generator with equivalent functions from libchrome. In the
new code, a thread-pool is used instead of creating one thread per
work and waiting for the threads to finish.
BUG=chromium:499886
TEST=unittests still pass.
Change-Id: I00fd56de2a789b5f007f1a4ab88680809bbeb5f0
Reviewed-on: https://chromium-review.googlesource.com/287635
Trybot-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
4 files changed