summaryrefslogtreecommitdiffhomepage
path: root/pkg/syncutil/downgradable_rwmutex_unsafe.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-12-06 23:08:39 -0800
committergVisor bot <gvisor-bot@google.com>2019-12-06 23:10:15 -0800
commit01eadf51ea54b8f478c49b755d712f11fff2b28c (patch)
tree1329d09a2a6fbd724b13795c87663b3ae49f0b9c /pkg/syncutil/downgradable_rwmutex_unsafe.go
parent3c2e2f7d12285e6093ecc225e0379fe59e8fd93f (diff)
Bump up Go 1.13 as minimum requirement
PiperOrigin-RevId: 284320186
Diffstat (limited to 'pkg/syncutil/downgradable_rwmutex_unsafe.go')
-rw-r--r--pkg/syncutil/downgradable_rwmutex_unsafe.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/syncutil/downgradable_rwmutex_unsafe.go b/pkg/syncutil/downgradable_rwmutex_unsafe.go
index 07feca402..51e11555d 100644
--- a/pkg/syncutil/downgradable_rwmutex_unsafe.go
+++ b/pkg/syncutil/downgradable_rwmutex_unsafe.go
@@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build go1.12
+// +build go1.13
// +build !go1.15
// Check go:linkname function signatures when updating Go version.
@@ -27,6 +27,9 @@ import (
//go:linkname runtimeSemacquire sync.runtime_Semacquire
func runtimeSemacquire(s *uint32)
+//go:linkname runtimeSemrelease sync.runtime_Semrelease
+func runtimeSemrelease(s *uint32, handoff bool, skipframes int)
+
// DowngradableRWMutex is identical to sync.RWMutex, but adds the DowngradeLock
// method.
type DowngradableRWMutex struct {