MCPcopy
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
27func 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

addFunction · 0.70
AddMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected