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

Unified Diff: mojo/public/go/system/core.go

Issue 795593004: Update mojo sdk to rev cc531b32182099a5a034a99daff35ed5d38a61c8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More workarounds for MSVC Created 6 years 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/public/dart/src/interface.dart ('k') | mojo/public/go/system/impl/core_impl.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/go/system/core.go
diff --git a/mojo/public/go/system/core.go b/mojo/public/go/system/core.go
index cf6ae99a4b54c1058d88d8e22a0402a7fdf459ef..ff6ffc189aa169842cb2cc81d910b2c5409721a6 100644
--- a/mojo/public/go/system/core.go
+++ b/mojo/public/go/system/core.go
@@ -14,7 +14,7 @@ import (
type Core interface {
// GetTimeTicksNow returns a monotonically increasing platform
// dependent tick count representing "right now". Resolution
- // depends on the systemconfiguration.
+ // depends on the system configuration.
GetTimeTicksNow() t.MojoTimeTicks
// Close closes the given handle.
@@ -22,12 +22,21 @@ type Core interface {
// Wait waits on the given handle until a signal indicated by signals
// is satisfied or it becomes known that no signal indicated by
- // signals will ever be satisified or until deadline has passed.
- Wait(handle t.MojoHandle, signal t.MojoHandleSignals, deadline t.MojoDeadline) (result t.MojoResult)
+ // signals will ever be satisfied or until deadline has passed.
+ // Notes about return values:
+ // |state| can be nil if the signal array could not be returned. This can
+ // happen with errors such as MOJO_RESULT_INVALID_ARGUMENT.
+ Wait(handle t.MojoHandle, signal t.MojoHandleSignals, deadline t.MojoDeadline) (result t.MojoResult, state *t.MojoHandleSignalsState)
// WaitMany behaves as if Wait were called on each handle/signal pair
// simultaneously and completing when the first Wait would complete.
- WaitMany(handles []t.MojoHandle, signals []t.MojoHandleSignals, deadline t.MojoDeadline) (result t.MojoResult)
+ // Notes about return values:
+ // |index| can be nil if the error returned was not caused by a
+ // particular handle. For example, the error MOJO_RESULT_DEADLINE_EXCEEDED
+ // is not related to a particular handle.
+ // |state| can be nil if the signal array could not be returned. This can
+ // happen with errors such as MOJO_RESULT_INVALID_ARGUMENT.
+ WaitMany(handles []t.MojoHandle, signals []t.MojoHandleSignals, deadline t.MojoDeadline) (result t.MojoResult, index *uint32, state []t.MojoHandleSignalsState)
// CreateMessagePipe creates a message pipe which is a bidirectional
// communication channel for framed data (i.e., messages). Messages
« no previous file with comments | « mojo/public/dart/src/interface.dart ('k') | mojo/public/go/system/impl/core_impl.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698