MCPcopy
hub / github.com/OpenNHP/opennhp / Start

Method Start

nhp/core/device.go:127–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (d *Device) Start() {
128 cpus := runtime.NumCPU()
129 d.wg.Add(2 * cpus)
130 for i := 0; i < cpus; i++ {
131 go d.msgToPacketRoutine(i)
132 go d.packetToMsgRoutine(i)
133 }
134}
135
136func (d *Device) Stop() {
137 close(d.signals.stop)

Callers

nothing calls this directly

Calls 3

msgToPacketRoutineMethod · 0.95
packetToMsgRoutineMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected