MCPcopy
hub / github.com/pingcap/tidb / Lock

Method Lock

pkg/util/cteutil/storage.go:71–71  ·  view source on GitHub ↗

Storage is not thread-safe. By using Lock(), users can achieve the purpose of ensuring thread safety.

()

Source from the content-addressed store, hash-verified

69 // Storage is not thread-safe.
70 // By using Lock(), users can achieve the purpose of ensuring thread safety.
71 Lock()
72 Unlock()
73
74 // Usually, Storage is filled first, then user can read it.

Calls

no outgoing calls

Tested by 15

TestConcurrencyFunction · 0.52
putMethod · 0.52
sortMethod · 0.52
lenMethod · 0.52
getMethod · 0.52
toStringMethod · 0.52
GetServiceSafePointMethod · 0.52