You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
285 B

  1. //go:build deadlock
  2. // +build deadlock
  3. package sync
  4. import (
  5. deadlock "github.com/sasha-s/go-deadlock"
  6. )
  7. // A Mutex is a mutual exclusion lock.
  8. type Mutex struct {
  9. deadlock.Mutex
  10. }
  11. // An RWMutex is a reader/writer mutual exclusion lock.
  12. type RWMutex struct {
  13. deadlock.RWMutex
  14. }