mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 16:31:54 +01:00
Updates #17852 Change-Id: I42a64a990dcc8f708fa23a516a40731a19967aba Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
23 lines
330 B
Go
23 lines
330 B
Go
// 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.
|