Documentation ¶
Overview ¶
Package mutex provides switch of concurrent safe feature for sync.Mutex.
Index ¶
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
}
Mutex is a sync.Mutex with a switch for concurrent safe feature.
func Create ¶
Create creates and returns a new Mutex object. The parameter `safe` is used to specify whether using this mutex in concurrent safety, which is false in default.
func New ¶
New creates and returns a new *Mutex. The parameter `safe` is used to specify whether using this mutex in concurrent safety, which is false in default.
Click to show internal directories.
Click to hide internal directories.