]> code.ossystems Code Review - openembedded-core.git/commit
oe/utils.py: Fix thread leakage in ThreadPool
authorAníbal Limón <anibal.limon@linux.intel.com>
Tue, 23 Jun 2015 16:49:53 +0000 (11:49 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jun 2015 08:25:50 +0000 (09:25 +0100)
commit524d92ed7b53bef933527095e82f378b934f25ef
treeb6fb65d2634631b09b420e71ad6c41f8b4b95684
parent2587b83faabdc8858e8746201805369ed8d53ba8
oe/utils.py: Fix thread leakage in ThreadPool

In order to fix Thread leakage caused by not call join() in Threads,

Pass num_tasks in ThreadPool for add all the tasks into a Queue this
enable catch of Queue.Empty exception and exit the threads.

classes/sstate.bbclass: Change checkstatus function to match new
ThreadPool operation.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass
meta/lib/oe/utils.py