Skip to content

Commit

Permalink
Add missing sync.NewCond wrapper (#22)
Browse files Browse the repository at this point in the history
* Add missing sync.NewCond wrapper
  • Loading branch information
ncw authored Oct 29, 2021
1 parent 4a6d8f3 commit f58e139
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 f58e139

Please sign in to comment.