mutex_debug.go 335 B

12345678910111213141516171819202122
  1. // Copyright (c) Tailscale Inc & contributors
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. //go:build ts_mutex_debug
  4. package syncs
  5. import "sync"
  6. type Mutex struct {
  7. sync.Mutex
  8. }
  9. type RWMutex struct {
  10. sync.RWMutex
  11. }
  12. func RequiresMutex(mu *sync.Mutex) {
  13. // TODO: check
  14. }
  15. // TODO(bradfitz): actually track stuff when in debug mode.