Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
21
func
(lp *Loadpoint) Lock() {
22
if
testing.Testing() && lp.rwMutex.Add(1) > 1 {
23
panic(
"reentrant Lock"
)
24
}
25
lp.RWMutex.Lock()
26
}
27
28
func
(lp *Loadpoint) Unlock() {
29
if
testing.Testing() {
Callers
15
setStatus
Method · 0.95
UpdateChargePowerAndCurrents
Method · 0.95
phasesFromChargeCurrents
Method · 0.95
SetChargerRef
Method · 0.95
SetMeterRef
Method · 0.95
SetCircuitRef
Method · 0.95
SetDefaultVehicleRef
Method · 0.95
SetTitle
Method · 0.95
SetMode
Method · 0.95
SetDefaultMode
Method · 0.95
SetPriority
Method · 0.95
SetPhasesConfigured
Method · 0.95
Calls
1
Add
Method · 0.65
Tested by
6
TestAuthRateLimiter
Function · 0.64
TestUnregisterDevice_MutexNotHeldDuringShipCall
Function · 0.64
TestEasee_Enable_clampsCurrentOnChargeStart
Function · 0.64
TestForwarderBootNotificationCache
Function · 0.64
forwarderTestSetup
Function · 0.64
waitForPendingTick
Function · 0.64