MCPcopy Index your code
hub / github.com/evcc-io/evcc / Lock

Method Lock

core/loadpoint_mutex.go:21–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (lp *Loadpoint) Lock() {
22 if testing.Testing() && lp.rwMutex.Add(1) > 1 {
23 panic("reentrant Lock")
24 }
25 lp.RWMutex.Lock()
26}
27
28func (lp *Loadpoint) Unlock() {
29 if testing.Testing() {

Callers 15

setStatusMethod · 0.95
SetChargerRefMethod · 0.95
SetMeterRefMethod · 0.95
SetCircuitRefMethod · 0.95
SetDefaultVehicleRefMethod · 0.95
SetTitleMethod · 0.95
SetModeMethod · 0.95
SetDefaultModeMethod · 0.95
SetPriorityMethod · 0.95
SetPhasesConfiguredMethod · 0.95

Calls 1

AddMethod · 0.65