Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mao888/golang-guide
/ main
Function
main
golang/go-study/go语言基础/并发/并发安全和锁/互斥锁/Mutex.go:27–35 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
}
26
27
func
main() {
28
wg.Add(2)
29
//runtime.GOMAXPROCS(1)
30
go
add()
31
go
add()
32
33
wg.Wait()
34
fmt.Println(x)
35
}
Callers
nothing calls this directly
Calls
3
add
Function · 0.70
Add
Method · 0.45
Wait
Method · 0.45
Tested by
no test coverage detected