diff options
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r-- | bitbake/lib/bb/event.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 6f1cb101fc..cacbac8f56 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -48,6 +48,16 @@ class Event(object): | |||
48 | def __init__(self): | 48 | def __init__(self): |
49 | self.pid = worker_pid | 49 | self.pid = worker_pid |
50 | 50 | ||
51 | |||
52 | class HeartbeatEvent(Event): | ||
53 | """Triggered at regular time intervals of 10 seconds. Other events can fire much more often | ||
54 | (runQueueTaskStarted when there are many short tasks) or not at all for long periods | ||
55 | of time (again runQueueTaskStarted, when there is just one long-running task), so this | ||
56 | event is more suitable for doing some task-independent work occassionally.""" | ||
57 | def __init__(self, time): | ||
58 | Event.__init__(self) | ||
59 | self.time = time | ||
60 | |||
51 | Registered = 10 | 61 | Registered = 10 |
52 | AlreadyRegistered = 14 | 62 | AlreadyRegistered = 14 |
53 | 63 | ||