Documentation ¶ Index ¶ type Mutex func (mx *Mutex) Hold(ctx context.Context) bool func (mx *Mutex) HoldForRead(ctx context.Context) bool func (mx *Mutex) Release() func (mx *Mutex) ReleaseForRead() func (mx *Mutex) TryHold() bool func (mx *Mutex) TryHoldForRead() bool func (mx *Mutex) Wait(ctx context.Context) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Mutex ¶ type Mutex struct { // contains filtered or unexported fields } func (*Mutex) Hold ¶ func (mx *Mutex) Hold(ctx context.Context) bool func (*Mutex) HoldForRead ¶ func (mx *Mutex) HoldForRead(ctx context.Context) bool func (*Mutex) Release ¶ func (mx *Mutex) Release() func (*Mutex) ReleaseForRead ¶ func (mx *Mutex) ReleaseForRead() func (*Mutex) TryHold ¶ func (mx *Mutex) TryHold() bool func (*Mutex) TryHoldForRead ¶ func (mx *Mutex) TryHoldForRead() bool func (*Mutex) Wait ¶ func (mx *Mutex) Wait(ctx context.Context) bool Source Files ¶ View all Source files mutex.go Click to show internal directories. Click to hide internal directories.