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

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

Issue 1946763002: EDK: Add MojoHandleRights to DispatcherTransport. (Closed) Base URL: https://github.com/domokit/mojo.git@work788_edk_handle_10
Patch Set: Created 4 years, 8 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/dispatcher.cc ('k') | mojo/edk/system/handle_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/handle.h
diff --git a/mojo/edk/system/handle.h b/mojo/edk/system/handle.h
index 458e0933146d1b6c2ac40a8a1b8fdaebfda12a80..62218ceb21772208b3a7f8374025b98ebc1ebfb2 100644
--- a/mojo/edk/system/handle.h
+++ b/mojo/edk/system/handle.h
@@ -33,6 +33,8 @@ struct Handle {
// A |Handle| tests as true if it actually has a dispatcher.
explicit operator bool() const { return !!dispatcher; }
+ void reset() { *this = Handle(); }
+
// Note: |dispatcher| is guaranteed to be null if default-constructed or
// moved-from, but we make no guarantees about the value of |rights| in either
// case.
« no previous file with comments | « mojo/edk/system/dispatcher.cc ('k') | mojo/edk/system/handle_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698