Documentation ¶
Index ¶
- type Locks
- func (locks *Locks) Lock(key string)
- func (locks *Locks) Locks(keys ...string)
- func (locks *Locks) RLock(key string)
- func (locks *Locks) RLocks(keys ...string)
- func (locks *Locks) RUnLock(key string)
- func (locks *Locks) RUnLocks(keys ...string)
- func (locks *Locks) RWLocks(writeKeys []string, readKeys []string)
- func (locks *Locks) RWUnLocks(writeKeys []string, readKeys []string)
- func (locks *Locks) UnLock(key string)
- func (locks *Locks) UnLocks(keys ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locks ¶
type Locks struct {
// contains filtered or unexported fields
}
Locks provides rw locks for key
func (*Locks) Locks ¶
Locks obtains multiple exclusive locks for writing invoking Lock in loop may cause deadlock, please use Locks
func (*Locks) RLocks ¶
RLocks obtains multiple shared locks for reading invoking RLock in loop may cause deadlock, please use RLocks
Click to show internal directories.
Click to hide internal directories.