Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecursiveMutex ¶
RecursiveMutex 包装一个Mutex,实现可重入
func (*RecursiveMutex) Lock ¶
func (m *RecursiveMutex) Lock()
func (*RecursiveMutex) Unlock ¶
func (m *RecursiveMutex) Unlock()
type TokenRecursiveMutex ¶
TokenRecursiveMutex Token方式的递归锁
func (*TokenRecursiveMutex) Lock ¶
func (m *TokenRecursiveMutex) Lock(token int64)
Lock 请求锁,需要传入token
Click to show internal directories.
Click to hide internal directories.