Skip to content

Commit

Permalink
remove lock detector
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 10, 2024
1 parent d596a63 commit 2a7f20d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deferrwl.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package torrent

import "github.com/anacrolix/sync"

// Runs deferred actions on Unlock. Note that actions are assumed to be the results of changes that
// would only occur with a write lock at present. The race detector should catch instances of defers
// without the write lock being held.
type lockWithDeferreds struct {
internal mu //sync.RWMutex
internal sync.RWMutex
unlockActions []func()

//lc atomic.Int32
Expand Down

0 comments on commit 2a7f20d

Please sign in to comment.