MCPcopy Create free account
hub / github.com/coder/coder / numSessions

Method numSessions

agent/agentssh/x11.go:266–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264}
265
266func (x *x11Forwarder) numSessions() int {
267 x.mu.Lock()
268 defer x.mu.Unlock()
269 return len(x.sessions)
270}
271
272func (x *x11Forwarder) popLeastRecentlyUsedSession() *x11Session {
273 x.mu.Lock()

Callers 1

createX11SessionMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected