* [PATCH 0/1 v2][PULL] Hob2: bitbake related changes
@ 2012-02-24 1:31 Dongxiao Xu
2012-02-24 1:31 ` [PATCH 1/1] runqueue: fire sceneQueueTaskStarted event when a setscene queue starts Dongxiao Xu
0 siblings, 1 reply; 3+ messages in thread
From: Dongxiao Xu @ 2012-02-24 1:31 UTC (permalink / raw)
To: bitbake-devel
Hi Richard,
This pull request revise the sceneQueueTaskStarted event change,
please help to review and pull.
Changes from last pull request:
- sceneQueueTaskStarted inherits runQueueEvent instead of runQueueTaskStarted.
- Also change sceneQueueTaskFailed to inherit runQueueEvent.
Thanks,
Dongxiao
The following changes since commit 9ede881620c501574f014e600cea6947ea908ac2:
bitbake: change for adding progress bar in Hob2. (2012-02-23 22:51:50 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib dxu4/hob2-bitbake-changes-v2
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/hob2-bitbake-changes-v2
Dongxiao Xu (1):
runqueue: fire sceneQueueTaskStarted event when a setscene queue
starts
lib/bb/runqueue.py | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
--
1.7.4.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] runqueue: fire sceneQueueTaskStarted event when a setscene queue starts
2012-02-24 1:31 [PATCH 0/1 v2][PULL] Hob2: bitbake related changes Dongxiao Xu
@ 2012-02-24 1:31 ` Dongxiao Xu
2012-02-24 15:22 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Dongxiao Xu @ 2012-02-24 1:31 UTC (permalink / raw)
To: bitbake-devel
The current code prints a log when a setscene task starts, therefore
the progressbar in hob will not receive it. Use a sceneQueueTaskStarted
event instead.
Besides, change the sceneQueueTaskFailed event to inherit runQueueEvent
directly to avoid confusion to event receiver.
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
lib/bb/runqueue.py | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index d1d9ad9..1959007 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1653,6 +1653,9 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
self.task_skip(task)
return True
+ startevent = sceneQueueTaskStarted(task, self.stats, self.rq)
+ bb.event.fire(startevent, self.cfgData)
+
pid, pipein, pipeout = self.fork_off_task(fn, realtask, taskname)
self.build_pids[pid] = task
@@ -1720,6 +1723,14 @@ class runQueueTaskStarted(runQueueEvent):
runQueueEvent.__init__(self, task, stats, rq)
self.noexec = noexec
+class sceneQueueTaskStarted(runQueueEvent):
+ """
+ Event notifing a setscene task was started
+ """
+ def __init__(self, task, stats, rq, noexec=False):
+ runQueueEvent.__init__(self, task, stats, rq)
+ self.noexec = noexec
+
class runQueueTaskFailed(runQueueEvent):
"""
Event notifing a task failed
@@ -1728,12 +1739,13 @@ class runQueueTaskFailed(runQueueEvent):
runQueueEvent.__init__(self, task, stats, rq)
self.exitcode = exitcode
-class sceneQueueTaskFailed(runQueueTaskFailed):
+class sceneQueueTaskFailed(runQueueEvent):
"""
Event notifing a setscene task failed
"""
def __init__(self, task, stats, exitcode, rq):
- runQueueTaskFailed.__init__(self, task, stats, exitcode, rq)
+ runQueueEvent.__init__(self, task, stats, rq)
+ self.exitcode = exitcode
self.taskstring = rq.rqdata.get_user_idstring(task, "_setscene")
class runQueueTaskCompleted(runQueueEvent):
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] runqueue: fire sceneQueueTaskStarted event when a setscene queue starts
2012-02-24 1:31 ` [PATCH 1/1] runqueue: fire sceneQueueTaskStarted event when a setscene queue starts Dongxiao Xu
@ 2012-02-24 15:22 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-02-24 15:22 UTC (permalink / raw)
To: Dongxiao Xu; +Cc: bitbake-devel
On Fri, 2012-02-24 at 09:31 +0800, Dongxiao Xu wrote:
> The current code prints a log when a setscene task starts, therefore
> the progressbar in hob will not receive it. Use a sceneQueueTaskStarted
> event instead.
>
> Besides, change the sceneQueueTaskFailed event to inherit runQueueEvent
> directly to avoid confusion to event receiver.
>
> Signed-off-by: Shane Wang <shane.wang@intel.com>
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> ---
> lib/bb/runqueue.py | 16 ++++++++++++++--
> 1 files changed, 14 insertions(+), 2 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-24 15:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-24 1:31 [PATCH 0/1 v2][PULL] Hob2: bitbake related changes Dongxiao Xu
2012-02-24 1:31 ` [PATCH 1/1] runqueue: fire sceneQueueTaskStarted event when a setscene queue starts Dongxiao Xu
2012-02-24 15:22 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.