github.com/badrootd/celestia-core@v0.0.0-20240305091328-aa4207a4b25d/libs/sync/sync.go (about) 1 //go:build !deadlock 2 // +build !deadlock 3 4 package sync 5 6 import "sync" 7 8 // A Mutex is a mutual exclusion lock. 9 type Mutex struct { 10 sync.Mutex 11 } 12 13 // An RWMutex is a reader/writer mutual exclusion lock. 14 type RWMutex struct { 15 sync.RWMutex 16 }