commit | 2ecd09016f33e239a7d043f9b84bc9323a05a5e1 | [log] [tgz] |
---|---|---|
author | David Greenaway <dgreenaway@google.com> | Mon Jun 29 02:31:37 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Mon Jun 29 02:31:37 2020 +0000 |
tree | 80eb5a9ad05213c5326cba1fe4803f5dafbf340b | |
parent | f52deb3a05ddd1a11106ce0f62e41820ebe6cc9d [diff] |
[kernel] Add SignalObserver class. This CL adds a new SignalObserver class, as a replacement to StateObserver. SignalObserver is a simplified StateObserver: instead of having callbacks on initialisation, state changes, cancellation, and removal, it simply has a OnMatch() and OnCancel() method which are called precisely once on cancellation or match. This CL adds support in the Dispatcher class for SignalObserver while also keeping StateObserver support. This leads to some duplication, but it is strictly temporary: StateObserver is removed in I6fba57857cf5d5cdf98b1556a6f87bad1d44cb65 after migration of users, leaving just the simplified interface. Bug: 51463 Change-Id: I6fba57857cf5d5cdf98b1556a6f87bad1d44cb65 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/391013 Commit-Queue: David Greenaway <dgreenaway@google.com> Testability-Review: David Greenaway <dgreenaway@google.com> Reviewed-by: Carlos Pizano <cpu@google.com> Reviewed-by: George Kulakowski <kulakowski@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.