]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
runqueue: Change buildable/running lists to sets
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 12 Jun 2016 22:55:08 +0000 (23:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jun 2016 10:08:59 +0000 (11:08 +0100)
commit8c1ed57f6ea475b714eca6673b48e8e5f5f0f9c3
tree80545171b3786b1d90df62f7a05a080712207509
parent5f80dac65f419825bd81a734273a2465d5a01bab
runqueue: Change buildable/running lists to sets

Using positions in lists for flags is an odd choice and makes the code
hard to maintain. Maintaining a list is slow since list searches are
slow (watch bitbake -n slow massively with it) but we can use a set()
instead.

This patch uses python sets to maintain the lists of tasks in each state
and this prepares for changing the task IDs from being integers.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/runqueue.py