summaryrefslogtreecommitdiff
path: root/libgo/go/sync/runtime.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/sync/runtime.go')
-rw-r--r--libgo/go/sync/runtime.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/libgo/go/sync/runtime.go b/libgo/go/sync/runtime.go
index 3bf47ea52aa..3b866303a96 100644
--- a/libgo/go/sync/runtime.go
+++ b/libgo/go/sync/runtime.go
@@ -19,8 +19,12 @@ func runtime_Semacquire(s *uint32)
// library and should not be used directly.
func runtime_Semrelease(s *uint32)
-// Opaque representation of SyncSema in runtime/sema.goc.
-type syncSema [3]uintptr
+// Approximation of syncSema in runtime/sema.go.
+type syncSema struct {
+ lock uintptr
+ head unsafe.Pointer
+ tail unsafe.Pointer
+}
// Syncsemacquire waits for a pairing Syncsemrelease on the same semaphore s.
func runtime_Syncsemacquire(s *syncSema)