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

Unified Diff: third_party/mojo/src/mojo/public/go/system/handle.go

Issue 910883002: Update mojo sdk to rev 8af2ccff2eee4bfca1043015abee30482a030b30 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply 9f87aeadbda22441b7d469e596f7bd7d0d73e2a8 (https://codereview.chromium.org/908973002/) Created 5 years, 10 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
Index: third_party/mojo/src/mojo/public/go/system/handle.go
diff --git a/third_party/mojo/src/mojo/public/go/system/handle.go b/third_party/mojo/src/mojo/public/go/system/handle.go
index 6f020cf563fe55328db59e26b44ba55a77fda190..189c8dd15c030f3ec287cd9e331052135a61713b 100644
--- a/third_party/mojo/src/mojo/public/go/system/handle.go
+++ b/third_party/mojo/src/mojo/public/go/system/handle.go
@@ -61,6 +61,7 @@ type UntypedHandle interface {
}
type baseHandle struct {
+ core *coreImpl
mojoHandle MojoHandle
}
@@ -69,6 +70,9 @@ func (h *baseHandle) invalidate() {
}
func (h *baseHandle) Close() MojoResult {
+ h.core.mu.Lock()
+ defer h.core.mu.Unlock()
+
mojoHandle := h.mojoHandle
h.invalidate()
return MojoResult(C.MojoClose(mojoHandle.cValue()))
« no previous file with comments | « third_party/mojo/src/mojo/public/go/system/data_pipe.go ('k') | third_party/mojo/src/mojo/public/go/system/message_pipe.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698