MCPcopy
hub / github.com/WireGuard/wireguard-go / GetInboundElementsContainer

Method GetInboundElementsContainer

device/pools.go:69–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (device *Device) GetInboundElementsContainer() *QueueInboundElementsContainer {
70 c := device.pool.inboundElementsContainer.Get().(*QueueInboundElementsContainer)
71 c.Mutex = sync.Mutex{}
72 return c
73}
74
75func (device *Device) PutInboundElementsContainer(c *QueueInboundElementsContainer) {
76 for i := range c.elems {

Callers 1

Implementers 4

NativeTuntun/tun_linux.go
netTuntun/netstack/tun.go
chTuntun/tuntest/tuntest.go
fakeTUNDeviceSizeddevice/device_test.go

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected