summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-13 16:57:13 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-13 16:57:13 +0100
commit474c2a2817acbea8ae79dd28ce026ffa1294b120 (patch)
treef2f0a4cd50c307ca77ce14914bd7f2e5f69ffb26 /bitbake
parente88859663612984ec0955af8fe49d6d26543d5d3 (diff)
downloadpoky-474c2a2817acbea8ae79dd28ce026ffa1294b120.tar.gz
bitbake/runqueue.py: Optimise delay values to avoid unneeded delays
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 4d1dc49d78..608deaed6a 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -908,7 +908,7 @@ class RunQueue:
908 self.rqexe = RunQueueExecuteScenequeue(self) 908 self.rqexe = RunQueueExecuteScenequeue(self)
909 909
910 if self.state is runQueueSceneRun: 910 if self.state is runQueueSceneRun:
911 self.rqexe.execute() 911 retval = self.rqexe.execute()
912 912
913 if self.state is runQueueRunInit: 913 if self.state is runQueueRunInit:
914 bb.msg.note(1, bb.msg.domain.RunQueue, "Executing runqueue") 914 bb.msg.note(1, bb.msg.domain.RunQueue, "Executing runqueue")
@@ -916,7 +916,7 @@ class RunQueue:
916 self.state = runQueueRunning 916 self.state = runQueueRunning
917 917
918 if self.state is runQueueRunning: 918 if self.state is runQueueRunning:
919 self.rqexe.execute() 919 retval = self.rqexe.execute()
920 920
921 if self.state is runQueueCleanUp: 921 if self.state is runQueueCleanUp:
922 self.rqexe.finish() 922 self.rqexe.finish()
@@ -1177,7 +1177,7 @@ class RunQueueExecuteTasks(RunQueueExecute):
1177 if self.rq.check_stamp_task(task, taskname): 1177 if self.rq.check_stamp_task(task, taskname):
1178 bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.rqdata.get_user_idstring(task))) 1178 bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.rqdata.get_user_idstring(task)))
1179 self.task_skip(task) 1179 self.task_skip(task)
1180 continue 1180 return True
1181 1181
1182 bb.event.fire(runQueueTaskStarted(task, self.stats, self.rq), self.cfgData) 1182 bb.event.fire(runQueueTaskStarted(task, self.stats, self.rq), self.cfgData)
1183 bb.msg.note(1, bb.msg.domain.RunQueue, 1183 bb.msg.note(1, bb.msg.domain.RunQueue,
@@ -1194,19 +1194,19 @@ class RunQueueExecuteTasks(RunQueueExecute):
1194 self.runq_running[task] = 1 1194 self.runq_running[task] = 1
1195 self.stats.taskActive() 1195 self.stats.taskActive()
1196 if self.stats.active < self.number_tasks: 1196 if self.stats.active < self.number_tasks:
1197 continue 1197 return True
1198 1198
1199 for pipe in self.build_pipes: 1199 for pipe in self.build_pipes:
1200 self.build_pipes[pipe].read() 1200 self.build_pipes[pipe].read()
1201 1201
1202 if self.stats.active > 0: 1202 if self.stats.active > 0:
1203 if self.runqueue_process_waitpid() is None: 1203 if self.runqueue_process_waitpid() is None:
1204 return 1204 return 0.5
1205 continue 1205 return True
1206 1206
1207 if len(self.failed_fnids) != 0: 1207 if len(self.failed_fnids) != 0:
1208 self.rq.state = runQueueFailed 1208 self.rq.state = runQueueFailed
1209 return 1209 return True
1210 1210
1211 # Sanity Checks 1211 # Sanity Checks
1212 for task in range(self.stats.total): 1212 for task in range(self.stats.total):
@@ -1217,7 +1217,7 @@ class RunQueueExecuteTasks(RunQueueExecute):
1217 if self.runq_complete[task] == 0: 1217 if self.runq_complete[task] == 0:
1218 bb.msg.error(bb.msg.domain.RunQueue, "Task %s never completed!" % task) 1218 bb.msg.error(bb.msg.domain.RunQueue, "Task %s never completed!" % task)
1219 self.rq.state = runQueueComplete 1219 self.rq.state = runQueueComplete
1220 return 1220 return True
1221 1221
1222class RunQueueExecuteScenequeue(RunQueueExecute): 1222class RunQueueExecuteScenequeue(RunQueueExecute):
1223 def __init__(self, rq): 1223 def __init__(self, rq):
@@ -1413,7 +1413,7 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
1413 1413
1414 if self.stats.active > 0: 1414 if self.stats.active > 0:
1415 if self.runqueue_process_waitpid() is None: 1415 if self.runqueue_process_waitpid() is None:
1416 return True 1416 return 0.5
1417 return True 1417 return True
1418 1418
1419 # Convert scenequeue_covered task numbers into full taskgraph ids 1419 # Convert scenequeue_covered task numbers into full taskgraph ids