summaryrefslogtreecommitdiffstats
path: root/mojo/edk/system/awakable.h
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2014-12-15 16:54:14 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-16 00:54:37 +0000
commit6f6c4e614de20d2509ee53e04b1c5351db71e1c6 (patch)
tree59b3af8852d3a35bf72981e29bdd4516d67abb4b /mojo/edk/system/awakable.h
parent3ac8a6d5596a29d00102e280ec7e7164c2807370 (diff)
downloadchromium_src-6f6c4e614de20d2509ee53e04b1c5351db71e1c6.zip
chromium_src-6f6c4e614de20d2509ee53e04b1c5351db71e1c6.tar.gz
chromium_src-6f6c4e614de20d2509ee53e04b1c5351db71e1c6.tar.bz2
Update mojo sdk to rev 59145288bae55b0fce4276b017df6a1117bcf00f
BUG=None TBR=jamesr@chromium.org for mojo Review URL: https://codereview.chromium.org/799113004 Cr-Commit-Position: refs/heads/master@{#308479}
Diffstat (limited to 'mojo/edk/system/awakable.h')
-rw-r--r--mojo/edk/system/awakable.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mojo/edk/system/awakable.h b/mojo/edk/system/awakable.h
index 5479912..057d3eb 100644
--- a/mojo/edk/system/awakable.h
+++ b/mojo/edk/system/awakable.h
@@ -20,7 +20,9 @@ class MOJO_SYSTEM_IMPL_EXPORT Awakable {
// * As this is called from any thread, this must be thread-safe.
// * As this is called inside a lock, this must not call anything that takes
// "non-terminal" locks, i.e., those which are always safe to take.
- virtual void Awake(MojoResult result, uintptr_t context) = 0;
+ // This should return false if this must not be called again for the same
+ // reason (e.g., for the same call to |AwakableList::Add()|).
+ virtual bool Awake(MojoResult result, uintptr_t context) = 0;
protected:
Awakable() {}