summaryrefslogtreecommitdiffhomepage
path: root/pkg/sync
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-25 17:59:29 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-25 17:59:29 +0000
commitf58aebbb96127435ca5b10d7647b292fd9e1ccc2 (patch)
treefddc0de2e21bb9f9a316cdbcd19312adb7863c78 /pkg/sync
parentfcfda242e3ef4aef7eb0c5aa07937e1de6a5593f (diff)
parentd04adebaab86ac30aca463b06528fc22430598ac (diff)
Merge release-20200219.0-224-gd04adeb (automated)
Diffstat (limited to 'pkg/sync')
-rwxr-xr-xpkg/sync/aliases.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sync/aliases.go b/pkg/sync/aliases.go
index d2d7132fa..0d4316254 100755
--- a/pkg/sync/aliases.go
+++ b/pkg/sync/aliases.go
@@ -29,3 +29,8 @@ type (
// Map is an alias of sync.Map.
Map = sync.Map
)
+
+// NewCond is a wrapper around sync.NewCond.
+func NewCond(l Locker) *Cond {
+ return sync.NewCond(l)
+}