MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / Lock

Method Lock

internal/scripting/room_func.go:187–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185}
186
187func (c ScriptContainer) Lock() {
188 if container, ok := c.roomRecord.Containers[c.name]; ok {
189 container.Lock.SetLocked()
190 c.roomRecord.Containers[c.name] = container
191 }
192}
193
194func (c ScriptContainer) Unlock() {
195 if container, ok := c.roomRecord.Containers[c.name]; ok {

Callers 15

playSlotsMethod · 0.80
maybeUpdateBiggestWinMethod · 0.80
slotMachineNounDescMethod · 0.80
getSessionMethod · 0.80
setSessionMethod · 0.80
removeSessionMethod · 0.80
makeInputHandlerMethod · 0.80
waitForExitMethod · 0.80
onWindowChangeMethod · 0.80
stopSessionMethod · 0.80
CreateMethod · 0.80
writeChecksumMethod · 0.80

Calls 1

SetLockedMethod · 0.45

Tested by 3

Benchmark_GetConfigFunction · 0.64
resetAuthStateForTestFunction · 0.64