Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1172)

Unified Diff: mojo/edk/system/waiter.h

Issue 2056763003: EDK: Change Awakable::Awake()'s context, etc., to be a uint64_t. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/simple_dispatcher_unittest.cc ('k') | mojo/edk/system/waiter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/waiter.h
diff --git a/mojo/edk/system/waiter.h b/mojo/edk/system/waiter.h
index e0bcf47bbb80416c897e4901f6f80432bca241cd..1af19c04fa7a1b08e74ccd108d21c185968e850b 100644
--- a/mojo/edk/system/waiter.h
+++ b/mojo/edk/system/waiter.h
@@ -55,11 +55,11 @@ class Waiter final : public Awakable {
// |MojoWait()|/|MojoWaitMany()| cannot or can no longer be satisfied by
// the corresponding handle (e.g., if the other end of a message or data
// pipe is closed).
- MojoResult Wait(MojoDeadline deadline, uint32_t* context);
+ MojoResult Wait(MojoDeadline deadline, uint64_t* context);
// Wake the waiter up with the given result and context (or no-op if it's been
// woken up already).
- bool Awake(MojoResult result, uintptr_t context) override;
+ bool Awake(MojoResult result, uint64_t context) override;
private:
util::CondVar cv_; // Associated to |mutex_|.
@@ -69,7 +69,7 @@ class Waiter final : public Awakable {
#endif
bool awoken_ MOJO_GUARDED_BY(mutex_);
MojoResult awake_result_ MOJO_GUARDED_BY(mutex_);
- uintptr_t awake_context_ MOJO_GUARDED_BY(mutex_);
+ uint64_t awake_context_ MOJO_GUARDED_BY(mutex_);
MOJO_DISALLOW_COPY_AND_ASSIGN(Waiter);
};
« no previous file with comments | « mojo/edk/system/simple_dispatcher_unittest.cc ('k') | mojo/edk/system/waiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698