Skip to content

Commit

Permalink
Add missing sync.NewCond wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Oct 28, 2021
1 parent 4a6d8f3 commit 8df648e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deadlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ type WaitGroup struct {
sync.WaitGroup
}

// NewCond is a sync.NewCond wrapper
var NewCond = sync.NewCond

// A Mutex is a drop-in replacement for sync.Mutex.
// Performs deadlock detection unless disabled in Opts.
type Mutex struct {
Expand Down

0 comments on commit 8df648e

Please sign in to comment.