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.

16 lines
239 B

  1. //go:build !deadlock
  2. // +build !deadlock
  3. package sync
  4. import "sync"
  5. // A Mutex is a mutual exclusion lock.
  6. type Mutex struct {
  7. sync.Mutex
  8. }
  9. // An RWMutex is a reader/writer mutual exclusion lock.
  10. type RWMutex struct {
  11. sync.RWMutex
  12. }