diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-07 07:14:19 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-07 07:14:19 +0000 |
commit | 59aa51e3662d4142f29478cdce876f8516e2531b (patch) | |
tree | 05f0dca99ac15147f37a0658f3b4005aa407ca5f /pkg/syncutil/downgradable_rwmutex_unsafe.go | |
parent | d98839394bb3f29840dfe57085fd1032258d6f09 (diff) | |
parent | 01eadf51ea54b8f478c49b755d712f11fff2b28c (diff) |
Merge release-20191129.0-23-g01eadf5 (automated)
Diffstat (limited to 'pkg/syncutil/downgradable_rwmutex_unsafe.go')
-rwxr-xr-x | pkg/syncutil/downgradable_rwmutex_unsafe.go | 5 |
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 100755 --- 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 { |