Package rosmake :: Module parallel_build :: Class BuildQueue
[frames] | no frames]

Class BuildQueue

source code

This class provides a thread safe build queue. Which will do the sequencing for many CompileThreads.

Instance Methods
 
__init__(self, package_list, dependency_tracker, robust_build=False) source code
 
progress_str(self) source code
 
get_started_threads(self) source code
 
is_completed(self)
Return if the build queue has been completed
source code
 
is_done(self)
Return if the build queue has been completed
source code
 
succeeded(self)
Return whether the build queue has completed all packages successfully.
source code
 
stop(self)
Stop the build queue, including waking all blocking threads.
source code
 
return_built(self, package, successful=True)
The thread which completes a package marks it as done with this method.
source code
 
get_valid_package(self)
This is a blocking call which will return a package which has all dependencies met.
source code
Method Details

stop(self)

source code 

Stop the build queue, including waking all blocking threads. It will not stop in flight builds.

get_valid_package(self)

source code 

This is a blocking call which will return a package which has all dependencies met. If interrupted or done it will return None