summaryrefslogtreecommitdiffhomepage
path: root/pkg/sync
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2020-03-25 10:54:19 -0700
committergVisor bot <gvisor-bot@google.com>2020-03-25 10:55:22 -0700
commitd04adebaab86ac30aca463b06528fc22430598ac (patch)
treeae3a08f54d9e3254a4f20916fb373d807a1e3822 /pkg/sync
parentd8c4eff3f77b2a5dde34389033fe0ce4589b2e82 (diff)
Fix data-race in endpoint.Readiness
PiperOrigin-RevId: 302924789
Diffstat (limited to 'pkg/sync')
-rw-r--r--pkg/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 100644
--- 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)
+}