Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrObtainGoroutineId = errors.New("nazasync: obtain current goroutine id failed")
Functions ¶
func CurGoroutineId ¶
Types ¶
type MutexManager ¶
type MutexManager struct {
// contains filtered or unexported fields
}
注意,key是由mutex唯一ID加上协程ID组合而成
func NewMutexManager ¶
func NewMutexManager() *MutexManager
type NonblockingOnce ¶
type NonblockingOnce struct {
// contains filtered or unexported fields
}
func (*NonblockingOnce) Do ¶
func (o *NonblockingOnce) Do(f func())
Click to show internal directories.
Click to hide internal directories.