Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
266
func
(x *x11Forwarder) numSessions() int {
267
x.mu.Lock()
268
defer
x.mu.Unlock()
269
return
len(x.sessions)
270
}
271
272
func
(x *x11Forwarder) popLeastRecentlyUsedSession() *x11Session {
273
x.mu.Lock()
Callers
1
createX11Session
Method · 0.95
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
no test coverage detected