Update
This commit is contained in:
22
vendor/tailscale.com/syncs/mutex_debug.go
generated
vendored
Normal file
22
vendor/tailscale.com/syncs/mutex_debug.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
//go:build ts_mutex_debug
|
||||
|
||||
package syncs
|
||||
|
||||
import "sync"
|
||||
|
||||
type Mutex struct {
|
||||
sync.Mutex
|
||||
}
|
||||
|
||||
type RWMutex struct {
|
||||
sync.RWMutex
|
||||
}
|
||||
|
||||
func RequiresMutex(mu *sync.Mutex) {
|
||||
// TODO: check
|
||||
}
|
||||
|
||||
// TODO(bradfitz): actually track stuff when in debug mode.
|
||||
Reference in New Issue
Block a user