Documentation ¶
Index ¶
- type Locker
- type RWLocker
- func (l *RWLocker) Lock(timeout int) (successful bool, prevStack string, currStack string)
- func (l *RWLocker) RLock(timeout int) (successful bool, prevStack string, currStack string)
- func (l *RWLocker) RUnlock()
- func (l *RWLocker) Unlock()
- func (l *RWLocker) WaitLock()
- func (l *RWLocker) WaitRLock()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
Locker 写锁对象
type RWLocker ¶
type RWLocker struct {
// contains filtered or unexported fields
}
RWLocker 读写锁对象
func (*RWLocker) Lock ¶
Lock 写锁定 timeout:超时毫秒数,timeout<=0则将会死等 返回值: 成功或失败 如果失败,返回上一次成功加锁时的堆栈信息 如果失败,返回当前的堆栈信息
Click to show internal directories.
Click to hide internal directories.