From d04adebaab86ac30aca463b06528fc22430598ac Mon Sep 17 00:00:00 2001 From: Bhasker Hariharan Date: Wed, 25 Mar 2020 10:54:19 -0700 Subject: Fix data-race in endpoint.Readiness PiperOrigin-RevId: 302924789 --- pkg/sync/aliases.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/sync') 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) +} -- cgit v1.2.3