Documentation ¶
Overview ¶
chan实现trylock乐观锁
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanLock ¶
type ChanLock struct {
// contains filtered or unexported fields
}
ChanLock chan lock
func (*ChanLock) TryLockTimeout ¶
TryLockTimeout 指定时间内的乐观锁
Click to show internal directories.
Click to hide internal directories.