summaryrefslogtreecommitdiffhomepage
path: root/syncs/mutex_debug.go
blob: 7af1e9abfe12d4cf8a334c3f96f4708df94a93cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) Tailscale Inc & contributors
// 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.