From 6f6c4e614de20d2509ee53e04b1c5351db71e1c6 Mon Sep 17 00:00:00 2001 From: rockot Date: Mon, 15 Dec 2014 16:54:14 -0800 Subject: 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} --- mojo/edk/system/awakable.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mojo/edk/system/awakable.h') 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() {} -- cgit v1.1